mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-28 05:36:33 +02:00
29 lines
915 B
Docker
29 lines
915 B
Docker
# Glibc is required for Factorio Server binaries to run
|
|
FROM frolvlad/alpine-glibc:alpine-3.12
|
|
|
|
ENV FACTORIO_VERSION=latest \
|
|
MANAGER_VERSION=0.8.2 \
|
|
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 ["/opt/entrypoint.sh"]
|