mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Update instructions, Dockerfile and Travis CI to use Node.js 10. Specify that Node.js version 10 or greater is needed in the engines section of package.json (note that this is only advisory.) And document this as a breaking change in CHANGELOG.md.
22 lines
760 B
Docker
22 lines
760 B
Docker
FROM node:10
|
|
RUN apt-get update && apt install git curl tar -y
|
|
RUN mkdir factorioClusterio
|
|
|
|
RUN git clone -b master https://github.com/clusterio/factorioClusterio.git && cd factorioClusterio && npm install --only=production
|
|
RUN cd factorioClusterio && curl -o factorio.tar.gz -L https://www.factorio.com/get-download/latest/headless/linux64 && tar -xf factorio.tar.gz
|
|
|
|
WORKDIR factorioClusterio
|
|
RUN mkdir instances sharedMods
|
|
RUN cp config.json.dist config.json
|
|
|
|
RUN node client.js download
|
|
|
|
LABEL maintainer "Sir3lit@gmail.com"
|
|
|
|
EXPOSE 8080 34167
|
|
VOLUME /factorioClusterio/instances
|
|
VOLUME /factorioClusterio/sharedMods
|
|
VOLUME /factorioClusterio/sharedPlugins
|
|
|
|
CMD RCONPORT="$RCONPORT" FACTORIOPORT="$FACTORIOPORT" MODE="$MODE" node $MODE\.js start $INSTANCE
|