thttpd/Dockerfile
Cassowary Rusnov 51b2ea7f29
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/tag Build is passing
Add dockerfile to produce docker image and drone.yml
2023-04-27 13:16:05 -07:00

18 lines
474 B
Docker

# syntax=docker/dockerfile:1
FROM alpine:latest AS build
RUN mkdir /tmp/source/
WORKDIR /tmp/source/
COPY ./ /tmp/source/
RUN apk --no-cache add build-base && ./configure && make
FROM alpine:latest
COPY --from=build /tmp/source/thttpd /usr/sbin/thttpd
COPY --from=build /tmp/source/extras/htpasswd /usr/sbin/htpasswd
RUN apk --no-cache add ca-certificates
WORKDIR /var/www/http
EXPOSE 80
ENTRYPOINT ["/usr/sbin/thttpd"]
CMD ["-D" "-l" "/dev/stderr" "-d" "/var/www/http"]