mirror of
https://github.com/halverneus/static-file-server.git
synced 2024-11-24 09:05:30 +00:00
9 lines
174 B
Docker
9 lines
174 B
Docker
FROM golang:latest as builder
|
|
COPY serve.go /
|
|
WORKDIR /
|
|
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o serve .
|
|
|
|
FROM scratch
|
|
COPY --from=builder /serve /
|
|
CMD ["/serve"]
|