Fixed dockerfile and changed start.sh

This commit is contained in:
Thijn Geurts
2017-05-03 12:24:23 +02:00
parent 5475afc09d
commit c94c8b1509
3 changed files with 10 additions and 86 deletions

View File

@ -6,33 +6,17 @@ MAINTAINER Thijn <thijn@viceunderdogs.com>
RUN apt-get update && apt-get install -y \
wget \
unzip \
p7zip
p7zip \
&& adduser --disabled-password --home /home/container container
# Download and extract server files
# Choose a more general directory name which does not contain any version
RUN cd / \
&& wget http://v04.maxorator.com/server/VCMP04_server_v22_linux64.zip \
&& unzip VCMP04_server_v22_linux64.zip \
&& rm -f VCMP04_server_v22_linux64.zip \
&& mkdir /vcmp \
&& mv /mpsvrrel64 /vcmp/ \
&& cd /vcmp \
&& mkdir plugins \
&& cd plugins \
&& wget http://v04.maxorator.com/allplugins_04rel004_patch7.7z \
&& p7zip -d allplugins_04rel004_patch7.7z \
&& chmod 700 * \
&& cd ../ \
&& chmod 700 mpsvrrel64
USER container
ENV USER container
ENV HOME /home/container
ENV VCMP_VERSION v22
ENV VCMP_PLUGIN_PATCH patch7
COPY vcmp.sh /usr/local/bin/vcmp
COPY docker-entrypoint.sh /entrypoint.sh
WORKDIR /home/container
RUN chmod +x /usr/local/bin/vcmp \
&& chmod +x /entrypoint.sh
COPY ./start.sh /start.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["vcmp", "start"]
EXPOSE 8192/udp
CMD ["/bin/bash", "/start.sh"]