dockerfile optimization

This commit is contained in:
Damien HENRY 2022-06-07 03:46:26 +00:00
parent 7cac0a0f5f
commit 08887dcf59

View File

@ -15,11 +15,10 @@ FROM alpine:latest as main
RUN apk add --no-cache nodejs npm
COPY --from=builder /mydraftcc-nodejs-server/server /
COPY --from=builder /mydraftcc-nodejs-server/ui/build /public
RUN npm install
# install and volumes mounpoint logs data
RUN npm install \
&& mkdir /data /logs
# Volumes mounpoint
RUN mkdir /data /logs
##VOLUME logs data
# run with user/group 1000
USER 1000:1000
# exposed port