Skip to content

Commit 3434464

Browse files
committed
Build implementation
1 parent 1feab84 commit 3434464

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM node:lts AS base
2+
WORKDIR /app
3+
4+
FROM base AS deps
5+
COPY package*.json .
6+
RUN npm install
7+
8+
FROM base AS build
9+
COPY --from=deps /app/node_modules ./node_modules
10+
COPY . .
11+
RUN npm run build
12+
13+
FROM nginx:stable-alpine AS deploy
14+
COPY --from=build /app/dist /usr/share/nginx/html
15+
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
16+
17+
EXPOSE 8080

0 commit comments

Comments
 (0)