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