Botanique/Dockerfile
Mylloon 6c3cb46f48
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
update dockerfile
2023-11-25 16:41:55 +01:00

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"]