fix/music-n-docker #124

Merged
Anri merged 2 commits from fix/music-n-docker into main 2023-11-25 18:00:47 +01:00
Showing only changes of commit a3c9e18352 - Show all commits

View file

@ -1,11 +1,13 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM node:20.2-alpine3.18 FROM node:21.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 . .
@ -14,7 +16,8 @@ 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"]