From 3482cf42bece189052803ec05b5ec3e546dc2ca5 Mon Sep 17 00:00:00 2001 From: viktorstrate Date: Sun, 31 Jan 2021 20:58:14 +0100 Subject: [PATCH] Change docker production environment to Debian ...to keep the build and production environments the same, and avoid compatibility errors with libc --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e2fe3d3..7193bfb1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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