Skip to content

Commit c019e89

Browse files
committed
feat: add dockerfile
1 parent 04d2ac3 commit c019e89

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
.env.local
55
package-lock.json
66
yarn.lock
7-
Dockerfile
87

98
# folders
109
build

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM node:16-alpine AS base
2+
3+
WORKDIR /opt/app
4+
COPY package.json /opt/app
5+
6+
RUN npm install
7+
8+
FROM base AS build
9+
10+
COPY . /opt/app
11+
RUN sh ./scripts/build.sh
12+
13+
FROM base as production
14+
15+
COPY . .
16+
CMD sh ./scripts/start.sh

0 commit comments

Comments
 (0)