2020-09-20 20:41:13 +02: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 15:58:02 +02:00
2020-12-25 18:03:40 +02:00
ENV FACTORIO_VERSION = stable \
2021-01-07 18:10:25 +02:00
MANAGER_VERSION = 0.9.0 \
2020-09-20 20:41:13 +02:00
ADMIN_USER = admin \
ADMIN_PASS = factorio \
RCON_PASS = "" \
COOKIE_ENCRYPTION_KEY = ""
2016-04-28 15:58:02 +02:00
2020-09-20 20:41:13 +02:00
VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
2016-04-28 15:58:02 +02:00
2020-09-20 20:41:13 +02:00
EXPOSE 80/tcp 34197/udp
2016-04-28 15:58:02 +02:00
2020-09-20 20:41:13 +02:00
RUN apk add --no-cache curl tar xz unzip jq
2016-04-28 15:58:02 +02:00
2020-09-20 20:41:13 +02:00
WORKDIR /opt
2016-04-30 20:35:10 +02:00
2020-09-20 20:41:13 +02:00
# Install FSM
2020-12-25 22:02:48 +02:00
RUN curl --location " https://github.com/OpenFactorioServerManager/factorio-server-manager/releases/download/ $MANAGER_VERSION /factorio-server-manager-linux- $MANAGER_VERSION .zip " \
2020-09-20 20:41:13 +02:00
--output /tmp/factorio-server-manager-linux_${ MANAGER_VERSION } .zip \
&& unzip /tmp/factorio-server-manager-linux_${ MANAGER_VERSION } .zip \
&& rm /tmp/factorio-server-manager-linux_${ MANAGER_VERSION } .zip \
&& mv factorio-server-manager fsm
2017-03-22 18:04:01 +02:00
2020-11-20 16:23:53 +02:00
COPY ./entrypoint.sh /opt/entrypoint.sh
2016-04-28 15:58:02 +02:00
2020-12-25 22:23:29 +02:00
ENTRYPOINT [ "/opt/entrypoint.sh" ]