3 ms·
That's real neat. I was messing around with it an threw together this Dockerfile for a tiny server container. Just mount the desired folder to `/http`: FRO
by jmholla 4y ago
That's real neat. I was messing around with it an threw together this Dockerfile for a tiny server container. Just mount the desired folder to `/http`:
FROM alpine as build
RUN apk add --no-cache build-base gcompat nasm
RUN mkdir /src
COPY \* /src
RUN cd /src \
&& make
FROM scratch
COPY --from=build /src/asmhttpd /asmhttpd
CMD ["/asmhttpd", "/http"]
(Run: `podman build -t $IMAGE .; podman run -p 8080:80 -v $PATH:/http -d $IMAGE`)