-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
42 lines (31 loc) · 1 KB
/
Containerfile
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
FROM ubuntu:20.04 as production
ENV DEBIAN_FRONTEND noninteractive
RUN dpkg --add-architecture i386 \
&& apt-get update -q \
&& apt-get install -yq --no-install-recommends \
ca-certificates \
clang \
curl \
g++-multilib \
iproute2 \
lib32stdc++-7-dev \
lib32z1-dev \
libc6-dev-i386 \
linux-libc-dev:i386 \
libncurses5:i386 \
tzdata \
&& update-ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/log/*
RUN mkdir -p /steamcmd \
&& curl -sSL -o /tmp/steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz \
&& tar -xzvf /tmp/steamcmd.tar.gz -C /steamcmd \
&& rm -rf /tmp/*
RUN useradd -m -d /home/container container
RUN chown container:container -R /steamcmd
USER container
ENV HOME /home/container
WORKDIR /home/container
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]