From 08887dcf59210ce0c1a965e6cd1d4e266c274ac5 Mon Sep 17 00:00:00 2001 From: Damien HENRY Date: Tue, 7 Jun 2022 03:46:26 +0000 Subject: [PATCH] dockerfile optimization --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bbf0d17..8990986 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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