Botanique/Dockerfile
Mylloon a61b25c2ef
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
fix(docker): now use debian instead of alpine (#125)
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>
2023-11-25 18:16:40 +01:00

23 lines
521 B
Docker

# syntax=docker/dockerfile:1
FROM node:20.2.0-bookworm-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=youtube-ext
CMD ["dumb-init", "node", "./dist/index.js"]