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:
viktorstrate
2021-01-31 20:58:14 +01:00
parent 5e59b2c092
commit 3482cf42be

View File

@@ -48,12 +48,13 @@ 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 alpine:3 FROM debian:buster
# Install darktable for converting RAW images, and ffmpeg for encoding videos # Install darktable for converting RAW images, and ffmpeg for encoding videos
# Ignore errors if packages are not supported for the specific platform RUN apt-get update
RUN apk --no-cache add darktable; exit 0 RUN apt-get install -y darktable; exit 0
RUN apk --no-cache add ffmpeg; 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=ui /app/dist /ui
COPY --from=api /app/photoview /app/photoview COPY --from=api /app/photoview /app/photoview