Botanique/Dockerfile
Mylloon fdabd1d95f
Some checks failed
Publish latest version / build (push) Failing after 35s
fix(docker): prune instead of omit (#216)
Reviewed-on: #216
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
2025-01-02 23:03:42 +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"]