Botanique/Dockerfile
Mylloon 8b420904b4
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 32s
follow nodejs.org boilerplate
2025-01-02 22:50:39 +01:00

20 lines
428 B
Docker

# syntax=docker/dockerfile:1
FROM node:22-alpine
ENV DOCKERIZED=1
RUN mkdir /config && \
chown node:node /config && \
apk add dumb-init ffmpeg
WORKDIR /app
COPY --chown=node:node . .
ENV NODE_ENV=production
RUN npm ci --omit=dev && \
npm run compile && \
rm -r src/ tsconfig.json && \
npm uninstall typescript @types/sqlite3 && \
npm cache clean --force
CMD ["dumb-init", "node", "./dist/index.js"]