File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ ENV CGO_ENABLED=0 \
1313 GOARCH=$TARGETARCH \
1414 VERSION=$VERSION
1515
16+ RUN apk add --no-cache ca-certificates tzdata
17+
1618# Dependency cache: only re-run when go.mod/go.sum change
1719COPY go.mod go.sum ./
1820RUN --mount=type=cache,target=/go/pkg/mod \
@@ -52,8 +54,6 @@ ARG TARGETARCH=amd64
5254COPY --from=go-builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
5355# Timezone data
5456COPY --from=go-builder /usr/share/zoneinfo /usr/share/zoneinfo
55- # passwd entry for non-root user
56- COPY --from=go-builder /etc/passwd /etc/passwd
5757
5858WORKDIR /authorizer
5959COPY --from=node-builder /authorizer/web/app/build web/app/build
@@ -63,6 +63,5 @@ COPY --from=node-builder /authorizer/web/dashboard/favicon_io web/dashboard/favi
6363COPY --from=go-builder /authorizer/build/linux/${TARGETARCH}/authorizer ./authorizer
6464COPY web/templates web/templates
6565EXPOSE 8080 8081
66- USER 65534
6766ENTRYPOINT [ "./authorizer" ]
6867CMD []
You can’t perform that action at this time.
0 commit comments