2022-07-03 19:19:10 +02:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
2024-12-07 20:55:17 +01:00
|
|
|
FROM node:22.3-alpine3.19
|
2023-01-17 12:15:14 +01:00
|
|
|
|
|
|
|
ENV DOCKERIZED=1
|
2023-11-25 18:16:40 +01:00
|
|
|
RUN mkdir /config && \
|
2023-12-05 14:25:04 +01:00
|
|
|
chown node:node /config && \
|
2024-12-07 20:55:17 +01:00
|
|
|
apk add dumb-init ffmpeg
|
2022-07-03 19:19:10 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --chown=node:node . .
|
|
|
|
|
2023-11-25 16:48:04 +01:00
|
|
|
ENV NODE_ENV=production
|
2023-11-25 18:16:40 +01:00
|
|
|
RUN npm ci --omit=dev && \
|
2024-11-02 18:26:01 +01:00
|
|
|
npm run compile && \
|
2023-12-05 14:25:04 +01:00
|
|
|
rm -r src/ tsconfig.json && \
|
|
|
|
npm uninstall typescript @types/sqlite3 && \
|
|
|
|
npm cache clean --force
|
2022-07-20 23:01:47 +02:00
|
|
|
|
|
|
|
CMD ["dumb-init", "node", "./dist/index.js"]
|