mirror of
https://github.com/immich-app/immich.git
synced 2025-02-04 01:09:14 -05:00
* chore(server): avoid copying sources in dev 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. * chore: respond to PR: don't add dev target web/Dockerfile is only used by docker-compose.dev.yml so a dev target is redundant. Instead, just remove the copy --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
11 lines
309 B
Docker
11 lines
309 B
Docker
FROM node:22.12.0-alpine3.20@sha256:96cc8323e25c8cc6ddcb8b965e135cfd57846e8003ec0d7bcec16c5fd5f6d39f
|
|
|
|
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"]
|