Skip to content

Commit b12f395

Browse files
committed
dockerfile
1 parent 5a5c719 commit b12f395

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# build stage
2+
FROM node:lts-alpine AS build-stage
3+
WORKDIR /app
4+
COPY package*.json ./
5+
RUN npm install
6+
COPY . .
7+
RUN npm run build
8+
9+
# production stage
10+
FROM nginx:stable-alpine AS production-stage
11+
COPY --from=build-stage /app/dist /usr/share/nginx/html
12+
EXPOSE 80
13+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)