fix production builds

This commit is contained in:
Jörn-Michael Miehe 2019-05-28 11:06:57 +02:00
parent 63999a9e74
commit e55e659cd0
2 changed files with 2 additions and 3 deletions

View file

@ -8,7 +8,7 @@ VOLUME ["/app"]
CMD [ "yarn", "dev" ] CMD [ "yarn", "dev" ]
FROM node:lts-alpine AS prod FROM node:lts AS prod
ENV NODE_ENV production ENV NODE_ENV production
# some dir for our code # some dir for our code
WORKDIR /app WORKDIR /app

View file

@ -18,5 +18,4 @@ COPY . .
RUN yarn build RUN yarn build
FROM nginx:stable-alpine AS prod 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
COPY --from=build /app/dist/* /usr/share/nginx/html/dist/