Mylloon
ee2e15b513
All checks were successful
Publish latest version / build (push) Successful in 1m26s
Close #126 Follow-up of #125 Reviewed-on: #206 Co-authored-by: Mylloon <kennel.anri@tutanota.com> Co-committed-by: Mylloon <kennel.anri@tutanota.com>
20 lines
434 B
Docker
20 lines
434 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM node:22.3-alpine3.19
|
|
|
|
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 && \
|
|
npm run compile && \
|
|
rm -r src/ tsconfig.json && \
|
|
npm uninstall typescript @types/sqlite3 && \
|
|
npm cache clean --force
|
|
|
|
CMD ["dumb-init", "node", "./dist/index.js"]
|