mirror of
https://github.com/KevinMidboe/immich.git
synced 2026-01-20 16:16:11 +00:00
Added fluent ffmpeg
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
##################################
|
||||
# DEVELOPMENT
|
||||
##################################
|
||||
FROM node:16-bullseye-slim AS development
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
@@ -7,7 +10,7 @@ WORKDIR /usr/src/app
|
||||
COPY package.json yarn.lock ./
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install gcc g++ make cmake python3 python3-pip -y
|
||||
RUN apt-get install gcc g++ make cmake python3 python3-pip ffmpeg -y
|
||||
|
||||
RUN npm i -g yarn --force
|
||||
|
||||
@@ -17,6 +20,18 @@ COPY . .
|
||||
|
||||
RUN yarn build
|
||||
|
||||
# Clean up commands
|
||||
RUN apt-get autoremove -y && apt-get clean && \
|
||||
rm -rf /usr/local/src/*
|
||||
|
||||
RUN apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
|
||||
##################################
|
||||
# PRODUCTION
|
||||
##################################
|
||||
FROM node:16-bullseye-slim as production
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG NODE_ENV=production
|
||||
@@ -27,7 +42,7 @@ WORKDIR /usr/src/app
|
||||
COPY package.json yarn.lock ./
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install gcc g++ make cmake python3 python3-pip -y
|
||||
RUN apt-get install gcc g++ make cmake python3 python3-pip ffmpeg -y
|
||||
|
||||
RUN npm i -g yarn --force
|
||||
|
||||
@@ -37,4 +52,12 @@ COPY . .
|
||||
|
||||
COPY --from=development /usr/src/app/dist ./dist
|
||||
|
||||
# Clean up commands
|
||||
RUN apt-get autoremove -y && apt-get clean && \
|
||||
rm -rf /usr/local/src/*
|
||||
|
||||
RUN apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
CMD ["node", "dist/main"]
|
||||
Reference in New Issue
Block a user