1
0
Fork 0
mirror of https://github.com/Luzifer/wiki.git synced 2024-12-29 23:11:19 +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 FROM golang:alpine as builder
ENV GO111MODULE=on
COPY . /go/src/github.com/Luzifer/wiki COPY . /go/src/github.com/Luzifer/wiki
WORKDIR /go/src/github.com/Luzifer/wiki WORKDIR /go/src/github.com/Luzifer/wiki
RUN set -ex \ RUN set -ex \
&& apk add --update \ && apk --no-cache add \
curl \ curl \
git \ git \
&& go build \ && go build \
@ -21,6 +19,7 @@ RUN set -ex \
/usr/local/bin/dumb-init \ /usr/local/bin/dumb-init \
/usr/local/bin/gosu /usr/local/bin/gosu
FROM alpine:latest FROM alpine:latest
ENV DATA_DIR=/data ENV DATA_DIR=/data