# # Use the base Ubuntu 18.04 image | |
FROM ubuntu:latest | |
# # 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 | |
ENTRYPOINT ["./factorio/bin/x64/factorio", "--start-server", "dd.zip", "-port", "7860"] | |