client/server + docker
This commit is contained in:
18
server/Dockerfile
Normal file
18
server/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user