-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
39 lines (30 loc) · 821 Bytes
/
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
FROM frolvlad/alpine-glibc:alpine-3
RUN apk --no-cache add tini
ENTRYPOINT ["/sbin/tini", "--"]
ARG VERSION
ARG SOURCE
LABEL org.opencontainers.image.version=$VERSION
LABEL org.opencontainers.image.source=$SOURCE
RUN apk --no-cache add curl pwgen
RUN mkdir -p /opt /saves
RUN curl -LSs https://www.factorio.com/get-download/${VERSION}/headless/linux64 | tar -xJC /opt
RUN ln -s /saves /opt/factorio/saves
RUN apk --no-cache del curl
COPY files /
RUN chmod +x /usr/local/bin/factorio
VOLUME /saves
VOLUME /mods
VOLUME /config
# RCON
EXPOSE 27015/tcp
# Game
EXPOSE 34197/udp
ENV FACTORIO_SAVE_NAME=meeseeks
ENV FACTORIO_PORT=
ENV FACTORIO_BIND_ADDRESS=
ENV FACTORIO_SCENARIO=
ARG CREATED
ARG REVISION
LABEL org.opencontainers.image.created=$CREATED
LABEL org.opencontainers.image.revision=$REVISION
CMD ["/run.sh"]