Botanique/Dockerfile
Mylloon 083aef5ac0
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
why not
2023-11-25 16:43:07 +01:00

20 lines
409 B
Docker

# syntax=docker/dockerfile:1
FROM node:21.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"]