File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ ARG IMAGE_REPOSITORY=public.ecr.aws/docker/library/alpine
2
2
ARG IMAGE_ALPINE_VERSION=edge
3
3
4
4
FROM ${IMAGE_REPOSITORY}:${IMAGE_ALPINE_VERSION} AS alpine-builder
5
- WORKDIR /usr/app/builder
6
5
7
6
ARG CADDY_MODULES
8
7
ARG GO_CADDY_VERSION
@@ -17,12 +16,13 @@ ARG CGO_ENABLED=0
17
16
ENV GOOS=$TARGETOS
18
17
ENV GOARCH=$TARGETARCH
19
18
ENV PATH="/usr/bin:/bin:/sbin:/usr/local/go/bin:/usr/local/go:/app/go/bin"
20
-
21
19
# O:R-X,U:---,A:---
22
20
COPY --chmod=0500 /scripts/array-helper.sh /app/helper/array-helper.sh
23
21
COPY --chmod=0500 /scripts/install-go.sh /app/helper/install-go.sh
24
22
COPY /scripts/entrypoint.go /app
25
23
24
+ WORKDIR /usr/app/builder
25
+
26
26
RUN apk update \
27
27
&& apk upgrade --no-cache \
28
28
&& apk add --no-cache --virtual build_ess --repository=${ALPINE_REPO_URL}/${ALPINE_REPO_VERSION}/main \
@@ -55,7 +55,6 @@ RUN apk update \
55
55
&& mkdir -p /app/logs
56
56
57
57
FROM scratch AS qor-caddy
58
- WORKDIR /app
59
58
60
59
ARG TARGETOS
61
60
ARG TARGETARCH
@@ -65,6 +64,7 @@ COPY --from=alpine-builder --chmod=0505 /app/go/bin/entrypoint-${TARGETARCH}
65
64
COPY --from=alpine-builder /usr/share/ca-certificates /usr/share/ca-certificates
66
65
COPY --from=alpine-builder /app/logs /app/logs
67
66
67
+ WORKDIR /app
68
68
USER 1001:1001
69
69
70
70
ENTRYPOINT ["/app/bin/entrypoint" ]
You can’t perform that action at this time.
0 commit comments