File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM --platform=$BUILDPLATFORM golang:alpine AS build-env
22WORKDIR /src
33
4- RUN apk add --no-cache ca-certificates tzdata && update-ca-certificates
5-
64COPY ./go.mod ./go.sum ./
75RUN go mod download
86COPY . .
@@ -45,10 +43,7 @@ ENV ENVIRONMENT=prod \
4543 WAKAPI_INSECURE_COOKIES='true' \
4644 WAKAPI_ALLOW_SIGNUP='true'
4745
48- COPY --from=build-env --chown=nonroot:nonroot --chmod=0444 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
49- COPY --from=build-env --chown=nonroot:nonroot --chmod=0555 /usr/share/zoneinfo /usr/share/zoneinfo
50-
51- COPY --from=build-env --chown=nonroot:nonroot /staging/app /app
46+ COPY --from=build-env --chown=root:root /staging/app /app
5247COPY --from=build-env --chown=nonroot:nonroot /staging/data /data
5348
5449LABEL org.opencontainers.image.url="https://github.com/muety/wakapi" \
You can’t perform that action at this time.
0 commit comments