aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorAlexander Rakoczy <[email protected]>2021-10-26 22:19:32 -0400
committerAlexander Rakoczy <[email protected]>2021-10-26 22:19:32 -0400
commit9f4e5e1d7e45de468f9ec663837488ab62cc06f4 (patch)
tree3f7dfadd0d1b8fba011d92187a8c0f64211d761f /Dockerfile
parent3eb2696f8e58c7dd9b0508da18b2e9b1353194f9 (diff)
less imagick more exiftool
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 069309c..d5efbfd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
FROM marketplace.gcr.io/google/debian11 AS build
-ENV BUILD_DEPS 'curl git gcc patch libc6-dev ca-certificates build-essential pkg-config libmagickwand-dev libmagickwand-6-headers'
+ENV BUILD_DEPS 'curl git gcc patch libc6-dev ca-certificates build-essential pkg-config'
RUN apt-get update && apt-get install -y ${BUILD_DEPS} --no-install-recommends
ENV GOPATH=/go
@@ -19,11 +19,16 @@ COPY go.sum /workdir
RUN $GOROOT_BOOTSTRAP/bin/go mod download
COPY . /workdir
-RUN $GOROOT_BOOTSTRAP/bin/go build ./cmd/server
+RUN $GOROOT_BOOTSTRAP/bin/go build -o /workdir/server ./cmd/server
+
+FROM marketplace.gcr.io/google/debian11 AS run
+
+RUN apt-get update && apt-get install -y --no-install-recommends 'exiftool'
ENV PORT=8080
+COPY --from=build /workdir/server /app/server
RUN mkdir -p /app
-RUN mv /workdir/server /app
+#RUN mv /workdir/server /app
ENTRYPOINT /app/server