Botanique/Dockerfile
Mylloon 4eb05fa1ab
Some checks failed
Publish latest version / build (push) Failing after 1m14s
chore: merge dev to main (#159)
Reviewed-on: #159
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
2024-09-05 13:59:34 +02:00

22 lines
501 B
Docker

# syntax=docker/dockerfile:1
FROM node:22.8-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 && \
npx tsc && \
rm -r src/ tsconfig.json && \
npm uninstall typescript @types/sqlite3 && \
npm cache clean --force
CMD ["dumb-init", "node", "./dist/index.js"]