Botanique/Dockerfile
Mylloon e2eb55a8f1
Some checks failed
Publish latest version / build (push) Failing after 38s
fix(docker): use node 23 instead of node 22 (#215)
Reviewed-on: #215
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
2025-01-02 22:56:05 +01:00

20 lines
428 B
Docker

# syntax=docker/dockerfile:1
FROM node:23-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"]