commit 08de32ed44b66e7c2aebd29f935ddbee24e75fea Author: boo3 Date: Mon Sep 30 02:20:56 2024 +0200 Added files from https://git.thesecretvault.net/boo3/Source-FastDownloadServer-Docker.git diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..060f2e9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# Use the official Apache image as the base +FROM httpd + +# Install required packages +RUN apt-get update && \ + apt-get install -y \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +# Create the FastDL directory structure +RUN mkdir -p \ + /usr/local/apache2/htdocs/source/tf/maps \ + /usr/local/apache2/htdocs/source/tf/materials \ + /usr/local/apache2/htdocs/source/tf/models \ + /usr/local/apache2/htdocs/source/tf/resource \ + /usr/local/apache2/htdocs/source/tf/particles \ + /usr/local/apache2/htdocs/source/tf/sound + +# Copy any initial files into the FastDL directory (optional) +# COPY ./initial-source-content /usr/local/apache2/htdocs/source/ + +# Expose port 80 +EXPOSE 80 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0a04b3e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' +services: + source-fastdownload-server: + build: . + container_name: source-fastdownload-server + ports: + - "80:80" + volumes: + - source-fastdownload:/usr/local/apache2/htdocs/source + +volumes: + source-fastdownload: