File size: 1,098 Bytes
bfd7ad1 0bafddd 27b4783 0bafddd 27b4783 0bafddd 6ee2fb1 119aa40 3dd3659 bfd7ad1 95e9f64 f6e4b5e 27b4783 |
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 |
# # Use the base Ubuntu 18.04 image
# FROM python:3.9
# # # Set the working directory
# # WORKDIR /home/cs16server
# # # Update the package repositories and install dependencies
# RUN apt-get update && apt-get install -y wget unzip
# COPY . ./app
# # # Download and install Counter-Strike 1.6 Dedicated Server
# # RUN wget https://factorio.com/get-download/1.1.87/headless/linux64
# RUN ls /app
# #RUN tar -xf /app/factorio_headless_x64_1.1.87.tar.xz
# # && rm factorio_headless_x64_1.1.87.tar.xz
# # # Expose the necessary ports
# #EXPOSE 27015/udp
# # # Set the entry point to start the server
# CMD "python3 -m http.server 0.0.0.0:7860"
# # ENTRYPOINT
FROM ubuntu:latest
RUN apt-get update && apt-get install wget xz-utils tree screen -y
COPY dd.zip .
RUN wget -O factorio_headless_x64_1.1.87.tar.xz https://factorio.com/get-download/1.1.87/headless/linux64
RUN tar -xJf factorio_headless_x64_1.1.87.tar.xz
RUN chmod 777 /factorio -R
RUN "pwd"
RUN "ls"
WORKDIR /
CMD ["screen" ,"-dmS", "my_session", "./factorio/bin/x64/factorio","--start-server" ,"dd.zip" , "--port" , "7860" ]
|