Botanique/Dockerfile

24 lines
533 B
Text
Raw Normal View History

# syntax=docker/dockerfile:1
FROM node:20.2.0-bullseye-slim
ENV DOCKERIZED=1
RUN mkdir /config && \
2023-12-05 14:16:35 +01:00
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 && \
2023-12-05 14:16:35 +01:00
npx tsc && \
rm -r src/ tsconfig.json && \
npm uninstall typescript @types/sqlite3 && \
npm cache clean --force
ENV DP_FORCE_YTDL_MOD=play-dl
CMD ["dumb-init", "node", "./dist/index.js"]