mirror of
https://github.com/Luzifer/wiki.git
synced 2024-12-20 10:31:18 +00:00
Slight improvements in Dockerfile
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a70eb9306a
commit
a10967db99
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue