14 lines
254 B
Docker
14 lines
254 B
Docker
FROM golang:1.19 AS builder
|
|
|
|
COPY . /build
|
|
WORKDIR /build
|
|
RUN make simple-file-server
|
|
|
|
FROM scratch AS prod
|
|
MAINTAINER Tony Grosinger <tony@grosinger.net>
|
|
|
|
COPY --from=builder /build/bin/simple-file-server /
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/simple-file-server"]
|
|
|