mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-16 04:54:52 +02:00
Fix executable path
This commit is contained in:
parent
c40b669f73
commit
dd3d83e711
@ -12,8 +12,6 @@ VOLUME /opt/factorio/saves /opt/factorio/mods /opt/factorio/config /security
|
|||||||
RUN apk add --no-cache curl tar unzip nginx openssl
|
RUN apk add --no-cache curl tar unzip nginx openssl
|
||||||
|
|
||||||
WORKDIR /opt/
|
WORKDIR /opt/
|
||||||
COPY "init.sh" "/opt/init.sh"
|
|
||||||
COPY "nginx.conf" "/etc/nginx/nginx.conf"
|
|
||||||
|
|
||||||
RUN curl -s -L -S -k https://www.factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 -o /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
|
RUN curl -s -L -S -k https://www.factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 -o /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
|
||||||
tar zxf /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
|
tar zxf /tmp/factorio_$FACTORIO_VERSION.tar.gz && \
|
||||||
@ -24,6 +22,9 @@ RUN curl -s -L -S -k https://www.factorio.com/get-download/$FACTORIO_VERSION/hea
|
|||||||
mkdir -p /run/nginx && \
|
mkdir -p /run/nginx && \
|
||||||
chown nginx:root /var/lib/nginx
|
chown nginx:root /var/lib/nginx
|
||||||
|
|
||||||
|
COPY "init.sh" "/opt/init.sh"
|
||||||
|
COPY "nginx.conf" "/etc/nginx/nginx.conf"
|
||||||
|
|
||||||
EXPOSE 80/tcp 443/tcp 34190-34200/udp
|
EXPOSE 80/tcp 443/tcp 34190-34200/udp
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/init.sh"]
|
ENTRYPOINT ["/opt/init.sh"]
|
||||||
|
@ -14,4 +14,5 @@ if [ ! -f /security/server.key ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
nohup nginx &
|
nohup nginx &
|
||||||
/opt/factorio-server/factorio-server-manager -dir '/opt/factorio' -conf '/opt/factorio-server/conf.json'
|
cd /opt/factorio-server-manager
|
||||||
|
./factorio-server-manager -dir '/opt/factorio'
|
||||||
|
Loading…
Reference in New Issue
Block a user