diff --git a/Dockerfile b/Dockerfile index 010de5b..f1da84c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ MAINTAINER zopanix WORKDIR /opt COPY ./smart_launch.sh /opt +COPY ./factorio.crt /opt VOLUME /opt/factorio/saves /opt/factorio/mods @@ -16,10 +17,8 @@ ENV FACTORIO_AUTOSAVE_INTERVAL=2 \ FACTORIO_SHA1=77d92ecc52989f3283462fd5c9b5ba07eb6081cc RUN apk --update add bash curl && \ - curl -L -k https://www.factorio.com/get-download/$VERSION/headless/linux64 -o /tmp/factorio_headless_x64_$VERSION.tar.gz && \ - ls -al /tmp && \ - sha1sum -b /tmp/factorio_headless_x64_$VERSION.tar.gz && \ - echo "$FACTORIO_SHA1 /tmp/factorio_headless_x64_$VERSION.tar.gz" | sha1sum -b -c && \ + curl -sSL --cacert /opt/factorio.crt https://www.factorio.com/get-download/$VERSION/headless/linux64 -o /tmp/factorio_headless_x64_$VERSION.tar.gz && \ + echo "$FACTORIO_SHA1 /tmp/factorio_headless_x64_$VERSION.tar.gz" | sha1sum -c && \ tar xzf /tmp/factorio_headless_x64_$VERSION.tar.gz && \ rm /tmp/factorio_headless_x64_$VERSION.tar.gz diff --git a/factorio.crt b/factorio.crt index e4525dc..67de129 100644 --- a/factorio.crt +++ b/factorio.crt @@ -1,35 +1,4 @@ -----BEGIN CERTIFICATE----- -MIIFUzCCBDugAwIBAgIRAM0lAXnqiIwRxaRxtw5IQLEwDQYJKoZIhvcNAQELBQAw -gZAxCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAO -BgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMTYwNAYD -VQQDEy1DT01PRE8gUlNBIERvbWFpbiBWYWxpZGF0aW9uIFNlY3VyZSBTZXJ2ZXIg -Q0EwHhcNMTYwNDExMDAwMDAwWhcNMTcwNTI1MjM1OTU5WjBcMSEwHwYDVQQLEx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DovL29jc3AuY29tb2RvY2EuY29tMCcGA1Ud -EQQgMB6CDiouZmFjdG9yaW8uY29tggxmYWN0b3Jpby5jb20wDQYJKoZIhvcNAQEL -BQADggEBAE+OOhuy0VIDuqD2mnJj2hySi8I3GcCp7aZkuqx/EACop9MBKkSa5oay -XZEzmmaLhpvLFULtwmvVpAEhbVpf+B3HZZ2rrhbW3WhUVMrIHPFT+sgDLPy6fNO6 -7gep0X97tpbTpXT29V8g1WTiDNeuMWEhplfJx2q65CmeRdZOMRJrkivZrkofjmOy -GcrehfI1xXTZ/mE1DNWnYsLbM8+V9doeM+xgg48z8xJ8F6q5JTLcmv8fISqzbERV -8+tPkffn29pXLq18c/23cfEQZCWPB/SMh9BTfmDgVAprQ3iyYOsxw0Ga9LzLQydY -S4oG0jnVW1AoqAJfBluwGcCZ7iNzuC8= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV @@ -96,3 +65,28 @@ B5a6SE2Q8pTIqXOi6wZ7I53eovNNVZ96YUWYGGjHXkBrI/V5eu+MtWuLt29G9Hvx PUsE2JOAWVrgQSQdso8VYFhH2+9uRv0V9dlfmrPb2LjkQLPNlzmuhbsdjrzch5vR pu/xO28QOG8= -----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU +MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs +IFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290 +MB4XD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