2020-11-20 14:54:48 -05:00

29 lines
919 B
Docker

# Glibc is required for Factorio Server binaries to run
FROM frolvlad/alpine-glibc
ENV FACTORIO_VERSION=latest \
MANAGER_VERSION=0.8.3 \
ADMIN_USER=admin \
ADMIN_PASS=factorio \
RCON_PASS="" \
COOKIE_ENCRYPTION_KEY=""
VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
EXPOSE 80/tcp 34197/udp
RUN apk add --no-cache curl tar xz unzip jq
WORKDIR /opt
# Install FSM
RUN curl --location "https://github.com/mroote/factorio-server-manager/releases/download/${MANAGER_VERSION}/factorio-server-manager-linux-${MANAGER_VERSION}.zip" \
--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
COPY ./entrypoint.sh /opt/entrypoint.sh
ENTRYPOINT ["/opt/entrypoint.sh"]