about summary refs log tree commit diff
path: root/Dockerfile
blob: c1ce8a73e9caa62a9a3da422fe9f491ac88ab263 (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 debian:10-slim
COPY --from=build-env /go/bin/static /static

ENV port=8080
ENV directory="/mount"
ENV subpath="079521df-c66e-4c1e-86ce-daf0075cc73f"

CMD /static -port ${port} -dir ${dir} -subpath ${subpath}