client/server + docker

This commit is contained in:
2024-03-03 19:59:35 -05:00
parent 7c0afd0114
commit 91d55efd20
12 changed files with 103 additions and 0 deletions

18
server/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM python:3.11
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app
# Install any needed packages specified in requirements.txt
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Make port 8000 available to the world outside this container
EXPOSE 8000
# Run python manage.py runserver 0.0.0.0:8000 when the container launches
CMD ["python", "main.py"]