Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Commit ef661d4

Browse files
committed
feat: add dockerfile
1 parent b553d5a commit ef661d4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: .dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Diff for: Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:13.12 AS builder
2+
WORKDIR /app
3+
COPY package.json /app
4+
RUN npm install
5+
COPY . .
6+
RUN npm run build
7+
8+
9+
FROM node:13.12-alpine
10+
WORKDIR /app
11+
COPY --from=builder /app ./
12+
EXPOSE 3000
13+
CMD ["node", "run", "start:prod"]

0 commit comments

Comments
 (0)