mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:39:19 +00:00
Change docker production environment to Debian
...to keep the build and production environments the same, and avoid compatibility errors with libc
This commit is contained in:
@@ -48,12 +48,13 @@ COPY api /app
|
||||
RUN go build -v -o photoview .
|
||||
|
||||
### Copy api and ui to production environment ###
|
||||
FROM alpine:3
|
||||
FROM debian:buster
|
||||
|
||||
# Install darktable for converting RAW images, and ffmpeg for encoding videos
|
||||
# Ignore errors if packages are not supported for the specific platform
|
||||
RUN apk --no-cache add darktable; exit 0
|
||||
RUN apk --no-cache add ffmpeg; exit 0
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y darktable; exit 0
|
||||
RUN apt-get install -y ffmpeg; exit 0
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=ui /app/dist /ui
|
||||
COPY --from=api /app/photoview /app/photoview
|
||||
|
||||
Reference in New Issue
Block a user