1
0
mirror of https://github.com/games-on-k8s/docker-factorio.git synced 2024-11-16 17:42:04 +02:00

Update make_release.sh and Dockerfile for 0.15

This commit is contained in:
Greg Taylor 2017-04-29 23:28:08 -07:00
parent e915373797
commit 43e3a6861e
3 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
factorio*.gz
factorio*.xz
factorio

View File

@ -5,17 +5,17 @@ ARG factorio_version
ENV VERSION $factorio_version
RUN apt-get update && apt-get dist-upgrade -y && \
apt install -y python3 && apt-get clean
apt install -y python3 xz-utils && apt-get clean
WORKDIR /opt
COPY entrypoint.sh gen_config.py factorio.crt /opt/
COPY factorio_headless_x64_$VERSION.tar.gz /tmp/factorio_headless.tar.gz
COPY factorio_headless_x64_$VERSION.tar.xz /tmp/factorio_headless.tar.xz
VOLUME /opt/factorio/saves /opt/factorio/mods
RUN tar xzf /tmp/factorio_headless.tar.gz && \
rm /tmp/factorio_headless.tar.gz
RUN tar -xJf /tmp/factorio_headless.tar.xz && \
rm /tmp/factorio_headless.tar.xz
EXPOSE 34197/udp
EXPOSE 27015/tcp

View File

@ -10,7 +10,7 @@ then
exit 1
fi
LOCAL_FILENAME=factorio_headless_x64_${VERSION}.tar.gz
LOCAL_FILENAME=factorio_headless_x64_${VERSION}.tar.xz
DOWNLOAD_URL=https://www.factorio.com/get-download/${VERSION}/headless/linux64
# Attempt to grab the requested release.