1
0
Fork 0
mirror of https://github.com/Luzifer/wiki.git synced 2024-11-08 14:50:11 +00:00

Slight improvements in Dockerfile

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-01-30 15:48:25 +01:00
parent a70eb9306a
commit a10967db99
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -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