Botanique/Dockerfile
Mylloon 467fce3a01
All checks were successful
Publish latest version / build (push) Successful in 1m13s
fix(docker): temporary force the correct esbuild pkg version (#217)
Reviewed-on: #217
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
2025-01-02 23:36:20 +01:00

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