1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-11-16 21:59:03 +00:00
notes/Dockerfile
Jake Howard 93bfe5f59b
Use dockerfile for production
The static buildpack is deprecated, and this is a lot easier
2022-09-09 16:39:21 +01:00

13 lines
241 B
Docker

FROM node:slim as build
ENV NODE_ENV=production
COPY package.json package-lock.json ./
RUN npm ci --no-audit --progress=false --omit=dev
COPY . .
RUN npm run build
FROM theorangeone/website-server:latest
COPY --from=build ./public /srv