mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
8bb656cb17
* add docker volumes to services this change adds the volume definitions for /usr/src/app/upload /usr/src/app/.reverse-geocoding-dump to the `immich-server` docker-compose files as /usr/src/app/upload should always be a volume for the containers I also added it to the `Dockerfile` Signed-off-by: PixelJonas <5434875+PixelJonas@users.noreply.github.com> * remove geocoding-dump volume from docker-compose Signed-off-by: PixelJonas <5434875+PixelJonas@users.noreply.github.com>
35 lines
624 B
Docker
35 lines
624 B
Docker
# Build stage
|
|
FROM node:16-alpine3.14 as builder
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN apk add --update-cache build-base python3 libheif vips-dev ffmpeg
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
|
|
# Prod stage
|
|
FROM node:16-alpine3.14
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json package-lock.json ./
|
|
COPY start-server.sh start-microservices.sh ./
|
|
|
|
RUN mkdir -p /usr/src/app/dist \
|
|
&& apk add --no-cache libheif vips ffmpeg
|
|
|
|
COPY --from=builder /usr/src/app/node_modules ./node_modules
|
|
COPY --from=builder /usr/src/app/dist ./dist
|
|
|
|
RUN npm prune --production
|
|
|
|
VOLUME /usr/src/app/upload
|
|
|
|
EXPOSE 3001
|