enemy7 commited on
Commit
0bafddd
·
1 Parent(s): 4f6b467

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -16
Dockerfile CHANGED
@@ -1,23 +1,34 @@
1
  # # Use the base Ubuntu 18.04 image
2
- FROM python:3.9
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
- # # Set the working directory
5
- # WORKDIR /home/cs16server
6
 
7
- # # Update the package repositories and install dependencies
8
- RUN apt-get update && apt-get install -y wget unzip
9
- COPY . ./app
10
- # # Download and install Counter-Strike 1.6 Dedicated Server
11
- # RUN wget https://factorio.com/get-download/1.1.87/headless/linux64
12
- RUN ls /app
13
- #RUN tar -xf /app/factorio_headless_x64_1.1.87.tar.xz
14
 
15
- # && rm factorio_headless_x64_1.1.87.tar.xz
16
 
17
- # # Expose the necessary ports
18
- #EXPOSE 27015/udp
 
19
 
20
- # # Set the entry point to start the server
21
- CMD "python3 -m http.server 0.0.0.0:7860"
22
- # ENTRYPOINT
23
 
 
1
  # # Use the base Ubuntu 18.04 image
2
+ # FROM python:3.9
3
+
4
+ # # # Set the working directory
5
+ # # WORKDIR /home/cs16server
6
+
7
+ # # # Update the package repositories and install dependencies
8
+ # RUN apt-get update && apt-get install -y wget unzip
9
+ # COPY . ./app
10
+ # # # Download and install Counter-Strike 1.6 Dedicated Server
11
+ # # RUN wget https://factorio.com/get-download/1.1.87/headless/linux64
12
+ # RUN ls /app
13
+ # #RUN tar -xf /app/factorio_headless_x64_1.1.87.tar.xz
14
+
15
+ # # && rm factorio_headless_x64_1.1.87.tar.xz
16
 
17
+ # # # Expose the necessary ports
18
+ # #EXPOSE 27015/udp
19
 
20
+ # # # Set the entry point to start the server
21
+ # CMD "python3 -m http.server 0.0.0.0:7860"
22
+ # # ENTRYPOINT
23
+
24
+
25
+ FROM python:3.9
 
26
 
27
+ WORKDIR /app
28
 
29
+ RUN pip3 install Flask
30
+ RUN chmod 777 /app
31
+ COPY . /app
32
 
33
+ CMD ["flask" , "run" , "--host=0.0.0.0", "--port=7860" ]
 
 
34