Update dockerfile for future builds

This commit is contained in:
Aj - Thomas
2022-05-09 22:13:04 +02:00
parent cb3abbc1c7
commit 0a85469510

View File

@@ -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