Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
npm-debug.log
node_modules
.github
.husky
tests
.dockerignore
.env.ci
.eslintrc.js
.gitignore
.prettierrc.js
Dockerfile
jest.config.js
README.md
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# build
FROM node:16.15.0-alpine AS builder
WORKDIR /app

RUN apk add --no-cache python3

COPY package.json package-lock.json ./
RUN npm install

COPY . .
RUN npm run build

RUN npm install --production

# run
FROM node:16.15.0-alpine
WORKDIR /app
COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/dist /app/dist