Skip to content

Commit ae32650

Browse files
committed
Allow security:check to work in Docker images
1 parent cecd313 commit ae32650

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.goreleaser.yml

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ dockers:
119119
goarch: amd64
120120
use: buildx
121121
build_flag_templates:
122+
- "--pull"
122123
- "--platform=linux/amd64"
123124
- "--label=org.opencontainers.image.source=https://github.com/symfony-cli/symfony-cli"
124125
- "--label=org.opencontainers.image.created={{.Date}}"
@@ -127,6 +128,7 @@ dockers:
127128
goarch: arm64
128129
use: buildx
129130
build_flag_templates:
131+
- "--pull"
130132
- "--platform=linux/arm64"
131133
- "--label=org.opencontainers.image.source=https://github.com/symfony-cli/symfony-cli"
132134
- "--label=org.opencontainers.image.created={{.Date}}"

Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
FROM scratch
1+
FROM scratch as build
2+
3+
COPY --from=composer:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
24

35
COPY symfony /usr/local/bin/
6+
7+
FROM scratch
8+
49
ENTRYPOINT ["/usr/local/bin/symfony"]
10+
11+
COPY --from=build . .

0 commit comments

Comments
 (0)