From 1844ed6e8d5f132a1d336e7a784de6dcbc872b04 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Fri, 1 May 2020 04:47:16 +0300 Subject: [PATCH] dockerfile update --- dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dockerfile b/dockerfile index 288bf60..a1a757c 100644 --- a/dockerfile +++ b/dockerfile @@ -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"] \ No newline at end of file