1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-01 09:51:16 +02:00
immich/web/Dockerfile

30 lines
442 B
Docker
Raw Normal View History

# Our Node base image
FROM node:16-alpine3.14 as base
COPY LICENSE /licenses/LICENSE.txt
COPY LICENSE /LICENSE
WORKDIR /usr/src/app
2022-10-28 00:21:28 +02:00
RUN chown node:node /usr/src/app
RUN apk add --no-cache setpriv
COPY --chown=node:node package*.json ./
2022-05-21 09:30:00 +02:00
RUN npm ci
COPY --chown=node:node . .
2022-10-28 00:21:28 +02:00
RUN npm run build
EXPOSE 3000
FROM base AS dev
ENV CHOKIDAR_USEPOLLING=true
EXPOSE 24678
CMD ["npm", "run", "dev"]
FROM base as prod
ENV NODE_ENV=production