1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-22 01:47:08 +02:00
immich/web/Dockerfile
Alex b1d7ef03e2
Pump version for release (#339)
* Remove unncessesary line

* Pump version for release
2022-07-13 09:51:41 -05:00

28 lines
466 B
Docker

# Our Node base image
FROM node:16-alpine3.14 as base
WORKDIR /usr/src/app
RUN chown node:node /usr/src/app
RUN apk add --no-cache setpriv
COPY --chown=node:node package*.json ./
RUN npm ci
COPY --chown=node:node . .
EXPOSE 3000
FROM base AS dev
ENV CHOKIDAR_USEPOLLING=true
EXPOSE 24678
CMD ["npm", "run", "dev"]
FROM base as prod
ENV NODE_ENV=production
# Issue build command in entrypoint.sh to capture user .env file instead of the builder .env file.