update Docker environments
This commit is contained in:
parent
7803aa80d0
commit
94eab33338
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
## Install dev and compilation dependencies, build files
|
||||
FROM node:20 as build
|
||||
FROM node:20-slim as build
|
||||
WORKDIR /firefish
|
||||
|
||||
# Install compilation dependencies
|
||||
|
@ -48,11 +48,11 @@ RUN env NODE_ENV=production sh -c "pnpm run --filter '!native-utils' build && pn
|
|||
RUN pnpm i --prod --frozen-lockfile
|
||||
|
||||
## Runtime container
|
||||
FROM node:20
|
||||
FROM node:20-slim
|
||||
WORKDIR /firefish
|
||||
|
||||
# Install runtime dependencies
|
||||
RUN apt-get update && apt-get install -y libvips-dev zip unzip tini ffmpeg
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends libvips-dev zip unzip tini ffmpeg
|
||||
|
||||
COPY . ./
|
||||
|
||||
|
|
|
@ -2,7 +2,9 @@ version: "3"
|
|||
|
||||
services:
|
||||
web:
|
||||
image: registry.joinfirefish.org/firefish/firefish
|
||||
# Choose one of these tags:
|
||||
# stable-amd64, stable-arm64, beta-amd64, beta-arm64
|
||||
image: registry.joinfirefish.org/firefish/firefish:stable-amd64
|
||||
container_name: firefish_web
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
|
|
Loading…
Reference in a new issue