This commit is contained in:
parent
a3c9e18352
commit
e09d6d5558
1 changed files with 9 additions and 9 deletions
18
Dockerfile
18
Dockerfile
|
@ -1,22 +1,22 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM node:21.2.0-bookworm-slim
|
||||
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 ;\
|
||||
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 ;\
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue