mirror of
https://github.com/games-on-k8s/docker-factorio.git
synced 2024-11-16 17:42:04 +02:00
24 lines
555 B
Docker
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"]
|