Skip to content

Commit 7502134

Browse files
committed
feat: dockerize
1 parent e5eaf58 commit 7502134

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
node_modules
3+
config

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM mhart/alpine-node:16
2+
3+
WORKDIR /app
4+
COPY . .
5+
6+
# Install dependencies
7+
COPY package.json package-lock.json ./
8+
RUN npm ci
9+
10+
RUN ls
11+
12+
# Run
13+
ENV NODE_ENV=production
14+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)