Botanique/Dockerfile
Mylloon 23446eb399
All checks were successful
Publish latest version / build (push) Successful in 2m4s
fix: SQL import in Docker images (#202)
Also don't compile tests

Reviewed-on: #202
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
2024-11-02 18:26:01 +01:00

22 lines
509 B
Docker

# syntax=docker/dockerfile:1
FROM node:22.9-bullseye-slim
ENV DOCKERIZED=1
RUN mkdir /config && \
chown node:node /config && \
apt-get update && \
apt-get install -y dumb-init ffmpeg && \
rm -rf /var/lib/apt/lists/*
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"]