mirror of
https://github.com/alangrainger/immich-public-proxy.git
synced 2024-12-28 20:01:57 +00:00
22 lines
374 B
Docker
22 lines
374 B
Docker
FROM node:lts-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY app/package.json ./
|
|
|
|
RUN npm install --omit=dev
|
|
RUN npm install pm2 -g
|
|
|
|
COPY app/ ./
|
|
|
|
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
|
|
|
|
RUN chown -R node:node /app
|
|
|
|
USER node
|
|
|
|
CMD ["pm2-runtime", "dist/index.js" ]
|