Browse Source

Add Dockerfile

docker-size
Amio 5 years ago
parent
commit
c5c6363ac1
  1. 4
      .dockerignore
  2. 14
      Dockerfile

4
.dockerignore

@ -0,0 +1,4 @@
.next
.github
node_modules
dist

14
Dockerfile

@ -0,0 +1,14 @@
FROM node:alpine AS build
WORKDIR /
COPY . .
RUN npm ci && npm run build
FROM node:alpine
WORKDIR /app
COPY --from=build /dist .
ENTRYPOINT node /app/index.js
COPY package* ./
RUN npm ci --only=production
EXPOSE 3000
Loading…
Cancel
Save