1
0
mirror of https://github.com/games-on-k8s/docker-factorio.git synced 2024-11-24 08:12:14 +02:00
docker-factorio-k8s/Dockerfile
2017-04-29 23:44:32 -07:00

24 lines
555 B
Docker

FROM ubuntu:16.04
MAINTAINER Greg Taylor <gtaylor@gc-taylor.com>
RUN apt-get update && apt-get dist-upgrade -y && \
apt install -y python3 xz-utils && apt-get clean
WORKDIR /opt
ARG factorio_version
ENV VERSION $factorio_version
COPY entrypoint.sh gen_config.py factorio.crt /opt/
COPY factorio_headless_x64_$VERSION.tar.xz /tmp/factorio_headless.tar.xz
VOLUME /opt/factorio/saves /opt/factorio/mods
RUN tar -xJf /tmp/factorio_headless.tar.xz && \
rm /tmp/factorio_headless.tar.xz
EXPOSE 34197/udp
EXPOSE 27015/tcp
CMD ["./entrypoint.sh"]