Skip to content

Commit a03d275

Browse files
switch workdir around
Signed-off-by: Mr. Rubber Ducky <79613254+MrRubberDucky@users.noreply.github.com>
1 parent 8ed2650 commit a03d275

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ ARG IMAGE_REPOSITORY=public.ecr.aws/docker/library/alpine
22
ARG IMAGE_ALPINE_VERSION=edge
33

44
FROM ${IMAGE_REPOSITORY}:${IMAGE_ALPINE_VERSION} AS alpine-builder
5-
WORKDIR /usr/app/builder
65

76
ARG CADDY_MODULES
87
ARG GO_CADDY_VERSION
@@ -17,12 +16,13 @@ ARG CGO_ENABLED=0
1716
ENV GOOS=$TARGETOS
1817
ENV GOARCH=$TARGETARCH
1918
ENV PATH="/usr/bin:/bin:/sbin:/usr/local/go/bin:/usr/local/go:/app/go/bin"
20-
2119
# O:R-X,U:---,A:---
2220
COPY --chmod=0500 /scripts/array-helper.sh /app/helper/array-helper.sh
2321
COPY --chmod=0500 /scripts/install-go.sh /app/helper/install-go.sh
2422
COPY /scripts/entrypoint.go /app
2523

24+
WORKDIR /usr/app/builder
25+
2626
RUN apk update \
2727
&& apk upgrade --no-cache \
2828
&& apk add --no-cache --virtual build_ess --repository=${ALPINE_REPO_URL}/${ALPINE_REPO_VERSION}/main \
@@ -55,7 +55,6 @@ RUN apk update \
5555
&& mkdir -p /app/logs
5656

5757
FROM scratch AS qor-caddy
58-
WORKDIR /app
5958

6059
ARG TARGETOS
6160
ARG TARGETARCH
@@ -65,6 +64,7 @@ COPY --from=alpine-builder --chmod=0505 /app/go/bin/entrypoint-${TARGETARCH}
6564
COPY --from=alpine-builder /usr/share/ca-certificates /usr/share/ca-certificates
6665
COPY --from=alpine-builder /app/logs /app/logs
6766

67+
WORKDIR /app
6868
USER 1001:1001
6969

7070
ENTRYPOINT ["/app/bin/entrypoint"]

0 commit comments

Comments
 (0)