File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM ubuntu:22.04
22
33ENV PYTHONDONTWRITEBYTECODE=1
44ENV PYTHONUNBUFFERED=1
5- COPY Pipfile Pipfile.lock ./
5+
66
77RUN apt-get update -y
88RUN apt-get install -y gcc default-libmysqlclient-dev pkg-config
@@ -12,12 +12,14 @@ RUN apt-get install python3 -y
1212RUN apt-get install python3-pip -y
1313RUN python3 -m pip install --upgrade pip
1414RUN pip3 install pipenv
15- RUN pipenv lock
16- RUN pipenv requirements > requirements.txt
17- RUN pip3 install -r requirements.txt
15+
1816
1917WORKDIR /home/python
2018COPY /src .
19+ COPY Pipfile .
20+ COPY Pipfile.lock .
21+ RUN pipenv requirements > requirements.txt
22+ RUN pip3 install -r requirements.txt
2123COPY /gunicorn/gunicorn.py .
2224ENV PATH="/home/python/.local/bin:${PATH}"
2325EXPOSE 8000
You can’t perform that action at this time.
0 commit comments