update the youtube extractor library (again) #128
1 changed files with 8 additions and 8 deletions
16
Dockerfile
16
Dockerfile
|
@ -4,20 +4,20 @@ FROM node:20.2.0-bullseye-slim
|
||||||
|
|
||||||
ENV DOCKERIZED=1
|
ENV DOCKERIZED=1
|
||||||
RUN mkdir /config && \
|
RUN mkdir /config && \
|
||||||
chown node:node /config && \
|
chown node:node /config && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y dumb-init ffmpeg && \
|
apt-get install -y dumb-init ffmpeg && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
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
|
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"]
|
||||||
|
|
Loading…
Reference in a new issue