Update dockerfile for future builds
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,13 +1,2 @@
|
||||
FROM node:16.15.0-alpine3.15 as build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package.json /app/package.json
|
||||
COPY ./yarn.lock /app/yarn.lock
|
||||
|
||||
COPY . .
|
||||
RUN yarn install
|
||||
RUN yarn export
|
||||
|
||||
FROM nginx:1.21.6
|
||||
COPY --from=build /app/out /usr/share/nginx/html
|
||||
COPY ./out /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user