Dockerfile for OpenShift
This commit is contained in:
parent
24cb941f94
commit
110e875126
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM python:3.11.0-alpine
|
||||
WORKDIR /usr/src/app
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONBUFFERED 1
|
||||
RUN pip install --upgrade pip
|
||||
COPY ./requirements.txt /usr/src/app
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . /usr/src/app
|
||||
EXPOSE 8000
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
|
Loading…
Reference in New Issue
Block a user