2016-04-29 18:29:21 -04:00
|
|
|
# glibc is required for Factorio Server binaries to run
|
2016-04-29 22:01:52 +02:00
|
|
|
FROM frolvlad/alpine-glibc
|
2016-04-28 09:58:02 -04:00
|
|
|
|
2016-11-01 14:20:00 -04:00
|
|
|
MAINTAINER Mitch Roote <mitch@r00t.ca>
|
2016-04-28 09:58:02 -04:00
|
|
|
|
2016-09-27 15:02:53 -03:00
|
|
|
ENV FACTORIO_VERSION=latest \
|
2017-01-24 19:33:30 -05:00
|
|
|
MANAGER_VERSION=0.6.0 \
|
2016-11-01 14:19:24 -04:00
|
|
|
ADMIN_PASSWORD=factorio
|
2016-04-28 09:58:02 -04:00
|
|
|
|
2016-11-01 14:19:24 -04:00
|
|
|
VOLUME /opt/factorio/saves /opt/factorio/mods /opt/factorio/config /security
|
2016-04-28 09:58:02 -04:00
|
|
|
|
2016-09-27 15:22:02 -03:00
|
|
|
RUN apk add --no-cache curl tar unzip nginx openssl
|
2016-04-28 09:58:02 -04:00
|
|
|
|
2016-04-29 22:01:52 +02:00
|
|
|
WORKDIR /opt/
|
2016-09-27 18:21:06 -03:00
|
|
|
COPY "init.sh" "/opt/init.sh"
|
|
|
|
COPY "nginx.conf" "/etc/nginx/nginx.conf"
|
2016-04-28 09:58:02 -04:00
|
|
|
|
2016-04-29 22:01:52 +02:00
|
|
|
RUN curl -s -L -S -k https://www.factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 -o /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
|
|
|
|
tar zxf /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
|
2016-04-29 23:23:31 +02:00
|
|
|
rm /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
|
2017-01-24 20:03:56 -05:00
|
|
|
curl -s -L -S -k https://github.com/mroote/factorio-server-manager/releases/download/$MANAGER_VERSION/factorio-server-manager-linux-x64.zip --cacert /opt/github.pem -o /tmp/factorio-server-manager-linux-x64_$MANAGER_VERSION.zip && \
|
2016-04-29 22:01:52 +02:00
|
|
|
unzip -qq /tmp/factorio-server-manager-linux-x64_$MANAGER_VERSION.zip && \
|
2016-04-30 14:35:10 -04:00
|
|
|
rm /tmp/factorio-server-manager-linux-x64_$MANAGER_VERSION.zip && \
|
2016-09-27 18:32:02 -03:00
|
|
|
mkdir -p /run/nginx && \
|
2016-04-30 14:35:10 -04:00
|
|
|
chown nginx:root /var/lib/nginx
|
|
|
|
|
2016-04-29 22:01:52 +02:00
|
|
|
EXPOSE 80/tcp 443/tcp 34190-34200/udp
|
2016-04-28 09:58:02 -04:00
|
|
|
|
2016-04-29 22:01:52 +02:00
|
|
|
ENTRYPOINT ["/opt/init.sh"]
|