geomyidae.Dockerfile - dockerfiles - Unnamed repository; edit this file 'description' to name the repository.
DIR Log
DIR Files
DIR Refs
---
geomyidae.Dockerfile (546B)
---
1 # podman build -t geomyidae .; podman run -d --name geomyidae -p $PORT:70 -v /PATH/TO/GOPHERDIR:/var/gopher geomyidae
2
3 FROM alpine AS build
4 WORKDIR /src/geomyidae
5 RUN apk update && apk add build-base git
6 RUN git clone --depth=1 git://bitreich.org/geomyidae /src/geomyidae
7 RUN sed -i 's/TLS_/#TLS_/g' /src/geomyidae/Makefile
8 RUN sed -i 's/-o/-static -o/g' /src/geomyidae/Makefile
9 RUN make
10
11 FROM scratch
12 COPY --from=build /src/geomyidae/geomyidae /geomyidae
13 VOLUME ["/var/gopher"]
14 EXPOSE 70
15 ENTRYPOINT ["/geomyidae"]
16 CMD ["-d", "-h", "0.0.0.0"]