Reorganised the webservers (temp for now) and docker-compose.yml now works

This commit is contained in:
2025-01-21 00:29:07 +00:00
parent 76991f0b39
commit 043effb6db
71 changed files with 147 additions and 130 deletions

21
web_server/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM python:3.10
# Set the working directory
WORKDIR /web_server
# Install dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Set environment variables
ENV FLASK_APP=blueprints.__init__
ENV FLASK_DEBUG=True
# Expose Flask's port
EXPOSE 5000
# Start the Flask app
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]