blob: c2d9f69e51491aff020968b44da4784bad8e1dc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FROM golang:1.13 as build-env
WORKDIR /go/src/app
ADD . /go/src/app
RUN go get -d -v ./...
RUN go build -o /go/bin/static
FROM alpine:stable
COPY --from=build-env /go/bin/static /
ENV port=8080
ENV directory="/mount"
ENV subpath="079521df-c66e-4c1e-86ce-daf0075cc73f"
CMD /static -port ${port} -dir ${dir} -subpath ${subpath}
|