Skip to content

Commit de575cf

Browse files
committed
use ubuntu base image instead of alpine
1 parent 3f881cb commit de575cf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docker/Dockerfile

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

44
ENV FACTORIO_VERSION=stable \
55
MANAGER_VERSION=0.10.0 \
@@ -9,7 +9,7 @@ VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
99

1010
EXPOSE 80/tcp 34197/udp
1111

12-
RUN apk add --no-cache curl tar xz unzip jq
12+
RUN apt-get update && apt-get install -y curl tar xz unzip jq && rm -rf /var/lib/apt/lists/*
1313

1414
WORKDIR /opt
1515

docker/Dockerfile-local

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

44
ENV FACTORIO_VERSION=latest \
55
RCON_PASS=""
@@ -8,7 +8,7 @@ VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
88

99
EXPOSE 80/tcp 34197/udp
1010

11-
RUN apk add --no-cache curl tar xz unzip jq
11+
RUN apt-get update && apt-get install -y curl tar xz-utils unzip jq && rm -rf /var/lib/apt/lists/*
1212

1313
WORKDIR /opt
1414

src/factorio/saves.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func CreateSave(filePath string) (string, error) {
7676
cmdOutput, err := exec.Command(config.FactorioBinary, args...).Output()
7777
if err != nil {
7878
log.Printf("Error in creating Factorio save: %s", err)
79+
log.Println(string(cmdOutput))
7980
return "", err
8081
}
8182

0 commit comments

Comments
 (0)