Merge pull request #265 from OpenFactorioServerManager/use-ubuntu-docker

use ubuntu base image instead of alpine
This commit is contained in:
knoxfighter 2021-03-09 21:21:03 +01:00 committed by GitHub
commit 1275c3045a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# Glibc is required for Factorio Server binaries to run
FROM frolvlad/alpine-glibc
FROM ubuntu
ENV FACTORIO_VERSION=stable \
MANAGER_VERSION=0.10.0 \
@ -9,7 +9,7 @@ VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
EXPOSE 80/tcp 34197/udp
RUN apk add --no-cache curl tar xz unzip jq
RUN apt-get update && apt-get install -y curl tar xz unzip jq && rm -rf /var/lib/apt/lists/*
WORKDIR /opt

View File

@ -1,5 +1,5 @@
# Glibc is required for Factorio Server binaries to run
FROM frolvlad/alpine-glibc
FROM ubuntu
ENV FACTORIO_VERSION=latest \
RCON_PASS=""
@ -8,7 +8,7 @@ VOLUME /opt/fsm-data /opt/factorio/saves /opt/factorio/mods /opt/factorio/config
EXPOSE 80/tcp 34197/udp
RUN apk add --no-cache curl tar xz unzip jq
RUN apt-get update && apt-get install -y curl tar xz-utils unzip jq && rm -rf /var/lib/apt/lists/*
WORKDIR /opt

View File

@ -76,6 +76,7 @@ func CreateSave(filePath string) (string, error) {
cmdOutput, err := exec.Command(config.FactorioBinary, args...).Output()
if err != nil {
log.Printf("Error in creating Factorio save: %s", err)
log.Println(string(cmdOutput))
return "", err
}