1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2024-12-28 20:01:57 +00:00
immich-public-proxy/Dockerfile
2024-11-03 11:22:47 +01:00

23 lines
448 B
Docker

FROM node:lts-slim
WORKDIR /app
COPY app/ ./
RUN npm install pm2 -g
RUN chown -R node:node /app
USER node
RUN npm install --omit=dev
ENV NODE_ENV=production
# Build without type checking, as we have removed the Typescript
# dev-dependencies above to save space in the final build
RUN npx tsc --noCheck
HEALTHCHECK --interval=30s --start-period=10s --timeout=5s CMD node /app/healthcheck.js || exit 1
CMD ["pm2-runtime", "dist/index.js" ]