mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2024-12-29 02:57:24 +02:00
29 lines
934 B
Docker
29 lines
934 B
Docker
# Glibc is required for Factorio Server binaries to run
|
|
FROM frolvlad/alpine-glibc
|
|
|
|
ENV FACTORIO_VERSION=stable \
|
|
MANAGER_VERSION=0.9.0 \
|
|
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/OpenFactorioServerManager/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"]
|