mirror of
https://github.com/LpmRaven/factorio-docker-server.git
synced 2025-01-05 10:20:58 +02:00
17 lines
521 B
Docker
17 lines
521 B
Docker
FROM ubuntu:14.04
|
|
|
|
MAINTAINER Carlo Eugster <carlo@relaun.ch>
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y wget \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN wget -q -O - https://www.factorio.com/download-headless/stable | grep -o "/get-download/.*/headless/linux64" | awk '{print "--no-check-certificate https://www.factorio.com"$1" -O /tmp/factorio.tar.gz"}' | xargs wget \
|
|
&& tar -xzf /tmp/factorio.tar.gz -C /opt \
|
|
&& rm -rf /tmp/factorio.tar.gz
|
|
|
|
ADD init.sh /opt/factorio/
|
|
|
|
WORKDIR /opt/factorio
|
|
CMD ["./init.sh"]
|