blob: a0a216cfdfe6b9490b30c54d8b87176544130e8f (
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:latest
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}
|