diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4bfaf11 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# Use a full Python runtime image to ensure necessary build tools are available. +FROM python + +# Set the working directory to organize application files. +WORKDIR /app + +# Copy requirements file to allow pip to find dependencies during build. +COPY requirements.txt /app/ + +# Install Python dependencies for the application to run correctly. +RUN pip install --no-cache-dir -r requirements.txt \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0124b6d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +# Use version 3.8 of the Docker Compose file format +version: '3.8' + +# Define the services (containers) that make up your application +services: + # 'python-app' is the name of your service + python-app: + # Build the Docker image using the Dockerfile in the current directory + build: . + # Mount the current directory on the host machine to '/app' inside the container. + # This enables real-time code changes during development. + volumes: + - "${PWD}:/app" + # EXPLICITLY set the entrypoint for your container. + # This ensures your Python script runs as the primary process and only once. + # Replace 'your_script_name.py' with the actual name of your Python file. + entrypoint: ["python", "src/py/Acronymbot.py"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3c81a16 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +discord +mariadb \ No newline at end of file