mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 15:04:52 +09:00
17 lines
651 B
Docker
17 lines
651 B
Docker
FROM node:latest
|
|
RUN apt-get update && apt install git -y && git clone https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install && curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64 && tar -xvzf factorio.tar.gz
|
|
|
|
WORKDIR factorioClusterio
|
|
|
|
|
|
RUN mkdir instances sharedMods sharedPlugins
|
|
RUN node client.js download
|
|
|
|
LABEL maintainer "danielv@live.no"
|
|
|
|
EXPOSE 8080 34167
|
|
VOLUME /factorioClusterio/instances
|
|
VOLUME /factorioClusterio/sharedMods
|
|
VOLUME /factorioClusterio/sharedPlugins
|
|
|
|
CMD node RCONPORT="$RCONPORT" FACTORIOPORT="$FACTORIOPORT" MODE="$MODE" $MODE\.js start $INSTANCE |