Botanique/Dockerfile

25 lines
516 B
Text
Raw Normal View History

# syntax=docker/dockerfile:1
2024-09-27 21:19:42 +02:00
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 . .
2024-09-27 21:39:41 +02:00
RUN ls -lah .
2024-09-27 21:36:37 +02:00
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"]