-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
44 lines (35 loc) · 1.11 KB
/
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
40
41
42
43
44
# Use an official Ubuntu as the base image
FROM ubuntu:latest
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
# Update and install dependencies
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
wget \
ca-certificates \
libstdc++6 \
lib32stdc++6 \
libtinfo5 \
software-properties-common \
wine winbind xvfb screen \
&& rm -rf /var/lib/apt/lists/*
# Install wine32
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install --no-install-recommends -y wine32 \
&& rm -rf /var/lib/apt/lists/*
# Create directories for SteamCMD and BattleBit
RUN mkdir -p /home/steam/steamcmd /home/steam/battlebit
# Download and install SteamCMD
WORKDIR /home/steam/steamcmd
RUN wget -q https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz \
&& tar -xvzf steamcmd_linux.tar.gz \
&& rm steamcmd_linux.tar.gz
# Set the working directory
WORKDIR /home/steam
# Copy the run script into the container
COPY run.sh .
# Give execute permissions to the run script
RUN chmod +x run.sh
# Command to start the run script
CMD ["./run.sh"]