From a10967db99ff965e8ceb44e8e9043266d2cc9a15 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 30 Jan 2024 15:48:25 +0100 Subject: [PATCH] Slight improvements in Dockerfile Signed-off-by: Knut Ahlers --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d353db7..a233f5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,10 @@ FROM golang:alpine as builder -ENV GO111MODULE=on - COPY . /go/src/github.com/Luzifer/wiki WORKDIR /go/src/github.com/Luzifer/wiki RUN set -ex \ - && apk add --update \ + && apk --no-cache add \ curl \ git \ && go build \ @@ -21,6 +19,7 @@ RUN set -ex \ /usr/local/bin/dumb-init \ /usr/local/bin/gosu + FROM alpine:latest ENV DATA_DIR=/data