dockerfile update

master
Tudor Stanciu 2020-05-01 04:47:16 +03:00
parent 2d53829bcf
commit 1844ed6e8d
1 changed files with 7 additions and 3 deletions

View File

@ -10,8 +10,12 @@ RUN npm run build
# production environment
FROM node:12
COPY --from=builder /app/build ./application
RUN npm install -g serve@6
RUN printf '\n\n- Copy application files\n'
RUN printf 'Subfolder: ${PUBLIC_URL}'
COPY --from=builder /app/build ./application/play-nine
COPY --from=builder /app/build/index.html ./application/
RUN npm install -g serve@11.3.0
EXPOSE 80
CMD ["sh","-c","serve -s application -p 80"]
CMD ["sh","-c","serve -s application -p 80"]