Fix executable path

This commit is contained in:
Niels 2017-03-22 17:04:01 +01:00
parent c40b669f73
commit dd3d83e711
2 changed files with 5 additions and 3 deletions

View File

@ -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
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 && \
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 && \
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
ENTRYPOINT ["/opt/init.sh"]

View File

@ -14,4 +14,5 @@ if [ ! -f /security/server.key ]; then
fi
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'