first commit

This commit is contained in:
2023-11-30 14:05:39 -05:00
commit 4e5b5e6416
14 changed files with 273 additions and 0 deletions

20
server/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# Use an official Python runtime as a base image
FROM python:3.9
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /usr/src/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", "manage.py", "runserver", "0.0.0.0:8000"]