mirror of
https://github.com/immich-app/immich.git
synced 2024-11-24 08:52:28 +02:00
564ace3ddf
* Use runtime env var for loginPageMessage * Rename VITE_LOGIN_PAGE_MESSAGE to PUBLIC_LOGIN_PAGE_MESSAGE in .env.example * Move docker image `npm run build` step into Dockerfile * Remove comment from web Dockerfile
27 lines
384 B
Docker
27 lines
384 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 . .
|
|
|
|
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
|