-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux.Dockerfile
More file actions
53 lines (37 loc) · 1.55 KB
/
linux.Dockerfile
File metadata and controls
53 lines (37 loc) · 1.55 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
# escape=`
FROM lacledeslan/steamcmd AS tf2class-builder
ARG SKIP_STEAMCMD=false
# Copy cached build files (if any)
# TODO!
# Download TF2 Classified Dedicated Server
RUN mkdir --parents /output &&`
/app/steamcmd.sh +force_install_dir /output +login anonymous +app_update 3557020 validate +quit;
COPY ./dist/linux-x64 /output
FROM lacledeslan/gamesvr-tf2:base-latest
ARG BUILDNODE=unspecified
ARG SOURCE_COMMIT=unspecified
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8
HEALTHCHECK NONE
LABEL maintainer="Laclede's LAN <contact @lacledeslan.com>" `
com.lacledeslan.build-node=$BUILDNODE `
org.label-schema.schema-version="1.0" `
org.label-schema.url="https://github.com/LacledesLAN/README.1ST" `
org.label-schema.vcs-ref=$SOURCE_COMMIT `
org.label-schema.vendor="Laclede's LAN" `
org.label-schema.description="Team Fortress 2 Classified Dedicated Server" `
org.label-schema.vcs-url="https://github.com/LacledesLAN/gamesvr-tf2classified" `
architecture="amd64"
RUN dpkg --add-architecture i386 && `
apt-get update && `
apt-get install -y lib32gcc-s1 lib32stdc++6 libncurses6:i386 libtinfo6:i386 && `
rm -rf /var/lib/apt/lists/*
COPY --chown=TF2:root --from=tf2class-builder /output /app/tf2classified
# UPDATE USERNAME & ensure permissions
RUN usermod -l TF2classified TF2 &&`
chmod +x /app/tf2classified/ll-tests/*.sh &&`
mkdir -p /app/tf2classified/logs/ &&`
chmod 774 /app/tf2classified/logs/
USER TF2classified
WORKDIR /app/tf2classified/
CMD ["/bin/bash"]
ONBUILD USER root