1
0
mirror of https://github.com/Luzifer/wiki.git synced 2024-09-18 23:23:00 +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