Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the base Ubuntu 18.04 image
|
2 |
+
FROM ubuntu:18.04
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /home/cs16server
|
6 |
+
|
7 |
+
# Update the package repositories and install dependencies
|
8 |
+
RUN apt-get update && \
|
9 |
+
apt-get install -y wget unzip
|
10 |
+
|
11 |
+
# Download and install Counter-Strike 1.6 Dedicated Server
|
12 |
+
RUN wget https://www.csdownload.lt/dl/CS16.zip && \
|
13 |
+
unzip CS16.zip && \
|
14 |
+
rm CS16.zip
|
15 |
+
|
16 |
+
# Expose the necessary ports
|
17 |
+
EXPOSE 27015/udp
|
18 |
+
|
19 |
+
# Set the entry point to start the server
|
20 |
+
ENTRYPOINT ["./hlds_run", "-game", "cstrike", "+map", "de_dust2", "+maxplayers", "16"]
|