File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,15 @@ RUN apk add build-base &&\
2121 make build-dashboard
2222
2323FROM alpine:latest
24- WORKDIR /root/
24+ RUN adduser -D -h /authorizer -u 1000 -k /dev/null authorizer
25+ WORKDIR /authorizer
2526RUN mkdir app dashboard
26- COPY --from=node-builder /authorizer/app/build app/build
27- COPY --from=node-builder /authorizer/app/favicon_io app/favicon_io
28- COPY --from=node-builder /authorizer/dashboard/build dashboard/build
29- COPY --from=node-builder /authorizer/dashboard/favicon_io dashboard/favicon_io
30- COPY --from=go-builder /authorizer/build build
27+ COPY --from=node-builder --chown=nobody:nobody /authorizer/app/build app/build
28+ COPY --from=node-builder --chown=nobody:nobody /authorizer/app/favicon_io app/favicon_io
29+ COPY --from=node-builder --chown=nobody:nobody /authorizer/dashboard/build dashboard/build
30+ COPY --from=node-builder --chown=nobody:nobody /authorizer/dashboard/favicon_io dashboard/favicon_io
31+ COPY --from=go-builder --chown=nobody:nobody /authorizer/build build
3132COPY templates templates
3233EXPOSE 8080
34+ USER authorizer
3335CMD [ "./build/server" ]
You can’t perform that action at this time.
0 commit comments