Files
darkhttpd/Dockerfile
Miles Elam c297abfb68 Create Dockerfile
Build a static copy of darkhttpd and bundle in a slim image
2021-04-02 09:22:43 -07:00

14 lines
286 B
Docker

# Build environment
FROM alpine AS build
RUN apk add --no-cache build-base
WORKDIR /src
COPY . .
RUN make darkhttpd-static \
&& strip darkhttpd-static
# Just the static binary
FROM scratch
WORKDIR /www-root
COPY --from=build /src/darkhttpd-static /darkhttpd
ENTRYPOINT ["/darkhttpd"]