Botanique/Dockerfile
Anri Kennel c4acecc0cc
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
update the youtube extractor library (again) (#128)
je suis désespéré

Reviewed-on: #128
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
2023-12-05 14:25:04 +01:00

24 lines
544 B
Docker

# syntax=docker/dockerfile:1
FROM node:20.2.0-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
ENV DP_FORCE_YTDL_MOD=@distube/ytdl-core
CMD ["dumb-init", "node", "./dist/index.js"]