-
Notifications
You must be signed in to change notification settings - Fork 298
/
Dockerfile
41 lines (32 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM frolvlad/alpine-glibc:alpine-3.3_glibc-2.23
MAINTAINER zopanix <[email protected]>
WORKDIR /opt
COPY ./new_smart_launch.sh /opt/
COPY ./factorio.crt /opt/
VOLUME /opt/factorio/saves /opt/factorio/mods
EXPOSE 34197/udp
EXPOSE 27015/tcp
CMD ["./new_smart_launch.sh"]
ENV FACTORIO_AUTOSAVE_INTERVAL=2 \
FACTORIO_AUTOSAVE_SLOTS=3 \
FACTORIO_ALLOW_COMMANDS=false \
FACTORIO_NO_AUTO_PAUSE=false \
VERSION=0.14.8 \
FACTORIO_SHA1=db71bd07aeb8b3775c9254597eaf5af858c84b7d \
FACTORIO_WAITING=false \
FACTORIO_MODE=normal \
FACTORIO_SERVER_NAME= \
FACTORIO_SERVER_DESCRIPTION= \
FACTORIO_SERVER_MAX_PLAYERS= \
FACTORIO_SERVER_VISIBILITY= \
FACTORIO_USER_USERNAME= \
FACTORIO_USER_PASSWORD= \
# FACTORIO_USER_TOKEN= \
FACTORIO_SERVER_GAME_PASSWORD= \
FACTORIO_SERVER_VERIFY_IDENTITY=
RUN apk --update add bash curl && \
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 && \
apk del curl