mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 07:24:52 +09:00
Use --only=production on npm install
Add --only=production flag to Dockerfile and the README entries describing how to install nodes. This will avoid pulling in a lot of dependencies that are not needed for running master/slaves.
This commit is contained in:
1 parent
d0afcbf0ac
commit
200c8dbdeb
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -2,7 +2,7 @@ FROM node:9.11.2
|
||||
RUN apt-get update && apt install git curl tar -y
|
||||
RUN mkdir factorioClusterio
|
||||
|
||||
RUN git clone -b master https://github.com/Danielv123/factorioClusterio.git && cd factorioClusterio && npm install
|
||||
RUN git clone -b master https://github.com/Danielv123/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
|
||||
|
||||
Reference in new issue
Block a user