2016-10-24 16:45:05 -07:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
MAINTAINER Greg Taylor <gtaylor@gc-taylor.com>
|
|
|
|
|
2017-02-04 16:17:01 -08:00
|
|
|
RUN apt-get update && apt-get dist-upgrade -y && \
|
2017-04-29 23:28:08 -07:00
|
|
|
apt install -y python3 xz-utils && apt-get clean
|
2016-10-24 16:45:05 -07:00
|
|
|
|
|
|
|
WORKDIR /opt
|
|
|
|
|
2017-04-29 23:44:32 -07:00
|
|
|
ARG factorio_version
|
|
|
|
ENV VERSION $factorio_version
|
|
|
|
|
2016-10-24 16:45:05 -07:00
|
|
|
COPY entrypoint.sh gen_config.py factorio.crt /opt/
|
2017-04-29 23:28:08 -07:00
|
|
|
COPY factorio_headless_x64_$VERSION.tar.xz /tmp/factorio_headless.tar.xz
|
2016-10-24 16:45:05 -07:00
|
|
|
|
|
|
|
VOLUME /opt/factorio/saves /opt/factorio/mods
|
|
|
|
|
2017-04-29 23:28:08 -07:00
|
|
|
RUN tar -xJf /tmp/factorio_headless.tar.xz && \
|
|
|
|
rm /tmp/factorio_headless.tar.xz
|
2016-10-24 16:45:05 -07:00
|
|
|
|
|
|
|
EXPOSE 34197/udp
|
|
|
|
EXPOSE 27015/tcp
|
|
|
|
|
|
|
|
CMD ["./entrypoint.sh"]
|