blob: 5cb2c3f44b89ddbdbbe8d09186157f777c0cfa2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
FROM alpine:latest AS build
WORKDIR /src/dashlab
COPY . .
ENV GOPROXY=direct
ENV GOTELEMETRY=off
RUN apk add --no-cache git go
RUN mkdir -p -- /opt/dashlab
RUN go build -o /opt/dashlab/dashlab *.go
FROM alpine:latest
ENV DASHLAB_CONFIG=/opt/dashlab/config.yaml
WORKDIR /opt/dashlab
COPY --from=build /opt/dashlab/dashlab /opt/dashlab/dashlab
COPY --from=build /src/dashlab/README.md /opt/dashlab/README.md
COPY --from=build /src/dashlab/config.yaml /opt/dashlab/config.yaml
COPY --from=build /src/dashlab/icon /opt/dashlab/icon
COPY --from=build /src/dashlab/templates /opt/dashlab/templates
CMD [ "/opt/dashlab/dashlab" ]
|