From e55e659cd08542320fca725e56dff3c1d02761a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 28 May 2019 11:06:57 +0200 Subject: [PATCH] fix production builds --- backend/Dockerfile | 2 +- frontend/Dockerfile | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 65fc531..8f5d7c2 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -8,7 +8,7 @@ VOLUME ["/app"] CMD [ "yarn", "dev" ] -FROM node:lts-alpine AS prod +FROM node:lts AS prod ENV NODE_ENV production # some dir for our code WORKDIR /app diff --git a/frontend/Dockerfile b/frontend/Dockerfile index be6d495..6310303 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -18,5 +18,4 @@ COPY . . RUN yarn build FROM nginx:stable-alpine AS prod -COPY --from=build /app/index.html /app/favicon.ico /usr/share/nginx/html/ -COPY --from=build /app/dist/* /usr/share/nginx/html/dist/ +COPY --from=build /app/dist /usr/share/nginx/html