-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
31 lines (19 loc) · 942 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
FROM debian:bookworm-slim AS builder
RUN apt update && apt install -y curl && apt clean && rm -rf /var/lib/apt/lists/*
WORKDIR /etlegacy
ARG TARGETPLATFORM
RUN case "$TARGETPLATFORM" in \
('linux/amd64') URL="https://www.etlegacy.com/download/file/685" ;; \
('linux/arm64') URL="https://www.etlegacy.com/download/file/697" ;; \
(*) echo "Unsupported platform $TARGETPLATFORM" && exit 1 ;; \
esac && \
curl $URL | tar xz -i --strip-components=1 && if [ -f etlded.* ]; then mv etlded.* etlded; fi
FROM debian:bookworm-slim
LABEL maintainer "Sebastian Danielsson <[email protected]>"
RUN groupadd -r etlegacy && useradd -g etlegacy etlegacy
COPY --from=builder --chown=etlegacy:etlegacy /etlegacy /etlegacy
WORKDIR /etlegacy
EXPOSE 27960/UDP
USER etlegacy
ENTRYPOINT ["./etlded"]
CMD ["+set", "fs_game", "legacy", "+set", "fs_homepath", "etmain", "+set", "g_protect", "1", "+exec", "etl_server.cfg"]