immich-public-proxy/Dockerfile

23 lines
374 B
Docker
Raw Normal View History

2024-10-31 14:17:58 -04:00
FROM node:lts-slim
WORKDIR /app
2024-11-02 17:18:04 -04:00
COPY app/package.json ./
RUN npm install --omit=dev
2024-11-02 17:18:04 -04:00
RUN npm install pm2 -g
2024-11-02 17:18:04 -04:00
COPY app/ ./
2024-11-01 14:02:31 -04:00
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
2024-11-02 17:18:04 -04:00
RUN chown -R node:node /app
USER node
CMD ["pm2-runtime", "dist/index.js" ]