mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Create Dockerfile
Build a static copy of darkhttpd and bundle in a slim image
This commit is contained in:
parent
9222bbc9d8
commit
c297abfb68
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
# 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"]
|
Loading…
x
Reference in New Issue
Block a user