mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:39:19 +00:00
Update debian version in Dockerfile
- This fixes build errors - This fixes #582
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -32,7 +32,7 @@ COPY ui /app
|
|||||||
RUN npm run build -- --public-url $UI_PUBLIC_URL
|
RUN npm run build -- --public-url $UI_PUBLIC_URL
|
||||||
|
|
||||||
### Build API ###
|
### Build API ###
|
||||||
FROM --platform=${BUILDPLATFORM:-linux/amd64} debian:bullseye-slim AS api
|
FROM --platform=${BUILDPLATFORM:-linux/amd64} debian:bookworm AS api
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
|
||||||
COPY docker/install_build_dependencies.sh /tmp/
|
COPY docker/install_build_dependencies.sh /tmp/
|
||||||
@@ -67,24 +67,24 @@ COPY api /app
|
|||||||
RUN go build -v -o photoview .
|
RUN go build -v -o photoview .
|
||||||
|
|
||||||
### Copy api and ui to production environment ###
|
### Copy api and ui to production environment ###
|
||||||
FROM debian:bullseye-slim
|
FROM debian:bookworm
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY api/data /app/data
|
COPY api/data /app/data
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt update \
|
||||||
# Required dependencies
|
# Required dependencies
|
||||||
&& apt-get install -y curl gpg libdlib19 ffmpeg exiftool libheif1
|
&& apt install -y curl gpg libdlib19 ffmpeg exiftool libheif1
|
||||||
|
|
||||||
# Install Darktable if building for a supported architecture
|
# Install Darktable if building for a supported architecture
|
||||||
RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ] || [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
RUN if [ "${TARGETPLATFORM}" = "linux/amd64" ] || [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
||||||
apt-get install -y darktable; fi
|
apt install -y darktable; fi
|
||||||
|
|
||||||
# Remove build dependencies and cleanup
|
# Remove build dependencies and cleanup
|
||||||
RUN apt-get purge -y gpg \
|
RUN apt purge -y gpg \
|
||||||
&& apt-get autoremove -y \
|
&& apt autoremove -y \
|
||||||
&& apt-get clean \
|
&& apt clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=ui /app/build /ui
|
COPY --from=ui /app/build /ui
|
||||||
|
|||||||
Reference in New Issue
Block a user