Merge branch 'master' of https://git.zom.bi/dockerfiles/factorio
This commit is contained in:
commit
1b6dca13e3
3 changed files with 26 additions and 11 deletions
23
Dockerfile
23
Dockerfile
|
@ -1,18 +1,27 @@
|
|||
FROM debian:jessie
|
||||
FROM debian:stretch
|
||||
EXPOSE 34197/udp
|
||||
|
||||
ENV FACTORIO_VERSION 0.15.34
|
||||
|
||||
ADD bin/entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN \
|
||||
apt-get --yes update &&\
|
||||
apt-get --yes install wget xz-utils &&\
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
|
||||
adduser --disabled-password --gecos "" --home /opt/factorio factorio &&\
|
||||
chmod 755 /entrypoint.sh &&\
|
||||
mkdir -p /opt/factorio/headless /opt/factorio/saves &&\
|
||||
chown -R factorio /opt/factorio
|
||||
|
||||
WORKDIR /root/
|
||||
USER factorio
|
||||
RUN \
|
||||
wget -O /tmp/headless.tgz https://www.factorio.com/get-download/0.15.34/headless/linux64 &&\
|
||||
tar xfv /tmp/headless.tgz && rm /tmp/headless.tgz
|
||||
wget -O /tmp/headless.tgz https://www.factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 &&\
|
||||
tar xfv /tmp/headless.tgz -C /opt/factorio/headless && rm /tmp/headless.tgz
|
||||
|
||||
ADD bin/entrypoint.sh /entrypoint.sh
|
||||
ADD default-config.json config/default.json
|
||||
ADD default-config.json /opt/factorio/headless/factorio/config/default.json
|
||||
|
||||
VOLUME /opt/factorio/saves
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["--server-settings", "config/config.json","--map-gen-settings","config/mapgen.json","--map-settings","config/map.json"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue