-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlinux.Dockerfile
More file actions
48 lines (37 loc) · 1.82 KB
/
Copy pathlinux.Dockerfile
File metadata and controls
48 lines (37 loc) · 1.82 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
# escape=`
FROM debian:trixie-slim
LABEL `
org.opencontainers.image.authors="Laclede's LAN <contact@lacledeslan.com>" `
org.opencontainers.image.description="SteamCMD, along with a collection of other tools. It's intended to be used as a builder image in multi-stage builds." `
org.opencontainers.image.documentation="https://github.com/LacledesLAN/SteamCMD" `
org.opencontainers.image.source="https://hub.docker.com/r/lacledeslan/steamcmd" `
org.opencontainers.image.title="SteamCMD in Docker, for use as a builder image." `
org.opencontainers.image.url="https://github.com/LacledesLAN/SteamCMD" `
org.opencontainers.image.vender="Laclede's LAN"
HEALTHCHECK NONE
ENV LANG=en_US.UTF-8 `
LANGUAGE=en_US.UTF-8 `
LC_ALL=en_US.UTF-8 `
# $HOME is used by SteamCMD; see https://github.com/ValveSoftware/steam-for-linux/issues/10979
HOME=/app
# Install dependencies
RUN apt-get update && apt-get install -y `
bzip2 ca-certificates curl libarchive13 lib32gcc-s1 locales p7zip-full tar tmux unzip wget xz-utils &&`
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen &&`
locale-gen --no-purge en_US.UTF-8 &&`
apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*;
COPY /dist/linux /app
# Set up User Environment
RUN useradd --home /app --gid root --system SteamCMD &&`
mkdir -p /app/ll-tests /output /scratch &&`
chown SteamCMD:root -R /app &&`
chown SteamCMD:root -R /output &&`
chown SteamCMD:root -R /scratch &&`
chmod +x /app/ll-tests/*.sh;
USER SteamCMD
WORKDIR /app
# Download SteamCMD; run it once for self-updates
RUN wget -qO- http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar xz -C /app &&`
chmod +x /app/steamcmd.sh &&`
/app/steamcmd.sh +force_install_dir /output +login anonymous +quit;
ONBUILD USER root