factorio-server-manager/docker/Dockerfile-local
2020-12-09 17:46:21 +01:00

27 lines
658 B
Plaintext

# Glibc is required for Factorio Server binaries to run
FROM frolvlad/alpine-glibc
ENV FACTORIO_VERSION=latest \
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
COPY factorio-server-manager-linux.zip /factorio-server-manager-linux.zip
RUN unzip /factorio-server-manager-linux.zip \
&& rm /factorio-server-manager-linux.zip \
&& mv factorio-server-manager fsm
COPY entrypoint.sh /opt
ENTRYPOINT ["/opt/entrypoint.sh"]