Update 'Dockerfile'

This commit is contained in:
2019-09-13 21:40:24 +00:00
parent e2eda6c155
commit b0b2c8cc79
+11 -6
View File
@@ -1,4 +1,4 @@
FROM ubuntu:vivid
FROM ubuntu:xenial
MAINTAINER uggla@free.fr
LABEL name=PAServer
LABEL version="1.0" description="PAServer in docker. Port used 20545"
@@ -20,23 +20,28 @@ COPY update_conf_file.sh /home/pa/update_conf_file.sh
COPY runServer.sh /home/pa/runServer.sh
COPY mikeyh_lobby.patch /home/pa/mikeyh_lobby.patch
COPY *.sed /home/pa/
RUN mkdir /home/pa/.local
RUN chown pa:pa /home/pa/auth_papatcher.sh && \
chown pa:pa /home/pa/update_conf_file.sh && \
chown pa:pa /home/pa/runServer.sh && \
chown pa:pa /home/pa/NodePAMaster_conf.json && \
chown pa:pa /home/pa/mikeyh_lobby.patch && \
chown pa:pa /home/pa/*.sed
chown pa:pa /home/pa/*.sed && \
chown -R pa:pa /home/pa/.local
USER pa
WORKDIR /home/pa
RUN wget https://bitbucket.org/papatcher/papatcher/raw/a7b8b4febb491d6fc6c45155b238fd42ee34fcc8/papatcher.go && \
wget http://nanodesu.info/stuff/pa/mods/NodePAMaster.zip && \
wget https://dl.dropboxusercontent.com/u/28565393/Planetary%20Annihilation/colours/color_table.js
wget http://nanodesu.info/stuff/pa/mods/NodePAMaster.zip && wget http://cdn.tooth.yt/color_table.js
RUN chmod +x /home/pa/auth_papatcher.sh && \
chmod +x /home/pa/papatcher.go && \
unzip /home/pa/NodePAMaster.zip && \
/home/pa/auth_papatcher.sh
RUN cp color_table.js ./.local/Uber\ Entertainment/Planetary\ Annihilation/stable/media/server-script/lobby/color_table.js && \
chmod +x /home/pa/update_conf_file.sh && \
COPY --chown=pa:pa .local/ .local/
RUN chown -R pa:pa /home/pa/.local
#RUN ls -la .local/Uber\ Entertainment/Planetary\ Annihilation/stable/media/server-script/lobby/
RUN chmod +x /home/pa/update_conf_file.sh && \
ls -al /home/pa/update_conf_file.sh && \
sleep 5s && \
/home/pa/update_conf_file.sh