fix production builds
This commit is contained in:
parent
63999a9e74
commit
e55e659cd0
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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/
|
|
||||||
|
|
Reference in a new issue