factorio-server-manager/docker/Dockerfile

29 lines
934 B
Docker
Raw Normal View History

2020-09-20 20:41:13 +02:00
# Glibc is required for Factorio Server binaries to run
FROM frolvlad/alpine-glibc
2020-12-25 18:03:40 +02:00
ENV FACTORIO_VERSION=stable \
MANAGER_VERSION=0.9.0 \
2020-09-20 20:41:13 +02:00
ADMIN_USER=admin \
ADMIN_PASS=factorio \
RCON_PASS="" \
COOKIE_ENCRYPTION_KEY=""
2020-09-20 20:41:13 +02:00
VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
2020-09-20 20:41:13 +02:00
EXPOSE 80/tcp 34197/udp
2020-09-20 20:41:13 +02:00
RUN apk add --no-cache curl tar xz unzip jq
2020-09-20 20:41:13 +02:00
WORKDIR /opt
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
ENTRYPOINT ["/opt/entrypoint.sh"]