Botanique/Dockerfile
Mylloon e39c88a324
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 32s
use remove dev pkg instead of omitting them
2025-01-02 23:02:45 +01:00

21 lines
434 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 && \
npm run compile && \
npm prune --production && \
npm uninstall typescript && \
rm -r src/ tsconfig.json && \
npm cache clean --force
CMD ["dumb-init", "node", "./dist/index.js"]