mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05:00
2d6d043336
Add a dev target to the web and server Dockerfiles, and change docker-compose.dev.yml to use the dev target. The dev target avoids copying files so that the docker image is smaller.
14 lines
No EOL
352 B
Docker
14 lines
No EOL
352 B
Docker
FROM node:20.17.0-alpine3.20@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 AS dev
|
|
|
|
RUN apk add --no-cache tini
|
|
USER node
|
|
WORKDIR /usr/src/app
|
|
COPY --chown=node:node package*.json ./
|
|
RUN npm ci
|
|
ENV CHOKIDAR_USEPOLLING=true
|
|
EXPOSE 24678
|
|
EXPOSE 3000
|
|
ENTRYPOINT ["/sbin/tini", "--", "/bin/sh"]
|
|
|
|
FROM dev
|
|
COPY --chown=node:node . . |