20 lines
409 B
Docker
20 lines
409 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM node:20.2-alpine3.18
|
|
|
|
ENV DOCKERIZED=1
|
|
RUN mkdir /config ;\
|
|
chown node:node /config ;\
|
|
apk add dumb-init ffmpeg
|
|
|
|
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
|
|
|
|
ENV DP_FORCE_YTDL_MOD=youtube-ext
|
|
CMD ["dumb-init", "node", "./dist/index.js"]
|