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