turn to debian
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-11-25 17:59:58 +01:00
parent bc2e0bfbb9
commit a3c9e18352
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,20 +1,23 @@
# syntax=docker/dockerfile:1
FROM node:20.2-alpine3.18
FROM node:21.2.0-bookworm-slim
ENV DOCKERIZED=1
RUN mkdir /config ;\
chown node:node /config ;\
apk add dumb-init ffmpeg
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 ;\
npx tsc ;\
rm -r src/ tsconfig.json ;\
npm uninstall typescript @types/sqlite3
npm uninstall typescript @types/sqlite3 ;\
npm cache clean --force
ENV DP_FORCE_YTDL_MOD=youtube-ext
CMD ["dumb-init", "node", "./dist/index.js"]