File size: 410 Bytes
64a9e22
cee3998
9a17f2a
4ef8e81
b7e1e68
1f0abeb
b7e1e68
c5e8da3
 
00db01d
c0df558
00db01d
0a08d4d
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM ubuntu:24.04
RUN apt-get update
RUN apt-get install -y python3-pip
RUN apt-get install -y python3-venv
WORKDIR /code
RUN python3 -m venv /code/venv
COPY ./requirements.txt /code/requirements.txt
RUN /code/venv/bin/pip install --upgrade pip
RUN /code/venv/bin/pip install -r /code/requirements.txt
COPY . .
ENV PATH="/code/venv/bin:$PATH"
EXPOSE 7860
CMD ["python","./manage.py","runserver","0.0.0.0:7860"]