Skip to content

Commit fa9494c

Browse files
authored
Merge pull request #200 from Knuspel/docker-fix
Dockerfile - use new repo and use factorio-stable by default
2 parents 6d9ad40 + 2466702 commit fa9494c

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ It also acts as the webserver to serve the front end react application
9898

9999
All api actions are accessible with the /api route. The frontend is accessible from /.
100100

101+
### API Auth
102+
103+
To authenticate with the API and get access to its functionality, you need to login first.
104+
105+
Here is a small example showing how to do it with a local install using default credentials, via the tool curl:
106+
```
107+
curl --cookie-jar cookie.txt --insecure --data '{"username":"admin","password":"factorio"}' -H "Content-Type: application/json" -X POST https://localhost/api/login
108+
curl --cookie cookie.txt --insecure https://localhost/api/server/status
109+
```
110+
101111
#### Requirements
102112
+ Go 1.11
103113
+ NodeJS >10.13.0

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Glibc is required for Factorio Server binaries to run
22
FROM frolvlad/alpine-glibc
33

4-
ENV FACTORIO_VERSION=latest \
4+
ENV FACTORIO_VERSION=stable \
55
MANAGER_VERSION=0.8.2 \
66
ADMIN_USER=admin \
77
ADMIN_PASS=factorio \
@@ -17,7 +17,7 @@ RUN apk add --no-cache curl tar xz unzip jq
1717
WORKDIR /opt
1818

1919
# Install FSM
20-
RUN curl --location "https://github.com/mroote/factorio-server-manager/releases/download/${MANAGER_VERSION}/factorio-server-manager-linux-${MANAGER_VERSION}.zip" \
20+
RUN curl --location "https://github.com/OpenFactorioServerManager/factorio-server-manager/releases/download/$MANAGER_VERSION/factorio-server-manager-linux-$MANAGER_VERSION.zip" \
2121
--output /tmp/factorio-server-manager-linux_${MANAGER_VERSION}.zip \
2222
&& unzip /tmp/factorio-server-manager-linux_${MANAGER_VERSION}.zip \
2323
&& rm /tmp/factorio-server-manager-linux_${MANAGER_VERSION}.zip \

0 commit comments

Comments
 (0)