Add Dockerfile for pvpgn 1.99.7.2.1

This commit is contained in:
2023-01-16 15:48:48 -07:00
commit e672fbc1a0
+25
View File
@@ -0,0 +1,25 @@
FROM debian:bullseye as builder
MAINTAINER restitux <restitux@ohea.xyz>
ENV PVPGN_VERSION=1.99.7.2.1
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y \
cmake \
g++ \
zlib1g-dev
RUN mkdir /build
WORKDIR /build
ADD https://github.com/pvpgn/pvpgn-server/archive/refs/tags/$PVPGN_VERSION.tar.gz .
RUN tar xf $PVPGN_VERSION.tar.gz
WORKDIR pvpgn-server-$PVPGN_VERSION
RUN cmake -D CMAKE_INSTALL_PREFIX=/usr/local/pvpgn -Bbuild
RUN make -Cbuild -j$(grep -c ^processor /proc/cpuinfo)
RUN make -Cbuild install
FROM debian:bullseye-slim
COPY --from=builder /usr/local/pvpgn /usr/local/pvpgn
ENTRYPOINT ["/usr/local/pvpgn/sbin/bnetd -D"]