VCMP-Docker/04rel64-stable/Dockerfile

46 lines
1.4 KiB
Docker
Raw Permalink Normal View History

2024-09-09 20:45:50 +02:00
FROM debian:stable
MAINTAINER Thijn <thijn@viceunderdogs.com>
# Install packages
RUN apt-get update && apt-get install -y \
wget \
unzip \
p7zip \
libstdc++6 \
gcc \
g++ \
build-essential \
libcurl4 \
&& adduser --disabled-password --home /home/container container
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt-get install -y nodejs npm
RUN cd /tmp && \
wget 'http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb11u5_amd64.deb' && \
dpkg -i libssl1.1_1.1.1n-0+deb11u5_amd64.deb && rm libssl1.1_1.1.1n-0+deb11u5_amd64.deb
#RUN apt-get install -y screen gdb
#RUN cd /tmp && wget 'http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb' && \
#dpkg -i libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb && rm libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
#RUN mkdir -p /usr/lib/jvm/jdk-15 && cd /usr/lib/jvm/jdk-15 && \
# wget 'https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz' && \
# tar -xzv --strip-components=1 -f openjdk-15.0.2_linux-x64_bin.tar.gz
USER container
ENV USER container
ENV HOME /home/container
ENV VCMP_VERSION v30
ENV VCMP_PLUGIN_PATCH patch2
WORKDIR /home/container
COPY ./start.sh /start.sh
COPY ./query /bin/vcmp-query
healthcheck --interval=1m --timeout=3s \
cmd /bin/vcmp-query "127.0.0.1:${SERVER_PORT}"
CMD ["/bin/bash", "/start.sh"]