fix(docker): now use debian instead of alpine (#125)
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

temporary fix for music not being played with mediaplex

- larger size of image (x2) 👎
- fix mediaplex since only gnu is available (no musl package)

Reviewed-on: #125
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
This commit is contained in:
Mylloon 2023-11-25 18:16:40 +01:00 committed by Anri Kennel
parent 575793d207
commit a61b25c2ef
Signed by: Forgejo
GPG key ID: E72245C752A07631
2 changed files with 12 additions and 9 deletions

View file

@ -3,5 +3,5 @@
!src/ !src/
!package.json !package.json
!package-lock.json !package-lock.json
!LICENCE !LICENSE
!tsconfig.json !tsconfig.json

View file

@ -1,20 +1,23 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM node:20.2-alpine3.18 FROM node:20.2.0-bookworm-slim
ENV DOCKERIZED=1 ENV DOCKERIZED=1
RUN mkdir /config ;\ RUN mkdir /config && \
chown node:node /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 WORKDIR /app
COPY --chown=node:node . . COPY --chown=node:node . .
ENV NODE_ENV=production ENV NODE_ENV=production
RUN npm ci --omit=dev ;\ RUN npm ci --omit=dev && \
npx tsc ;\ npx tsc && \
rm -r src/ tsconfig.json ;\ 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 ENV DP_FORCE_YTDL_MOD=youtube-ext
CMD ["dumb-init", "node", "./dist/index.js"] CMD ["dumb-init", "node", "./dist/index.js"]