Dockerise
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c0ac68a516
commit
13788c5538
@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
*.js
|
@ -0,0 +1,14 @@
|
||||
FROM node:22-bookworm AS runner
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV="production"
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install --omit=dev
|
||||
|
||||
FROM runner AS builder
|
||||
COPY . .
|
||||
RUN npm install && npm run build && npm prune --omit=dev
|
||||
|
||||
FROM runner
|
||||
COPY --from=builder /app/dist /app
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT ["node", "src/server.js"]
|
Loading…
Reference in new issue