We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 070f5ce + 275c503 commit 450aa08Copy full SHA for 450aa08
Dockerfile
@@ -2,7 +2,7 @@ FROM ubuntu:22.04
2
3
ENV PYTHONDONTWRITEBYTECODE=1
4
ENV PYTHONUNBUFFERED=1
5
-COPY Pipfile Pipfile.lock ./
+
6
7
RUN apt-get update -y
8
RUN apt-get install -y gcc default-libmysqlclient-dev pkg-config
@@ -12,12 +12,14 @@ RUN apt-get install python3 -y
12
RUN apt-get install python3-pip -y
13
RUN python3 -m pip install --upgrade pip
14
RUN pip3 install pipenv
15
-RUN pipenv lock
16
-RUN pipenv requirements > requirements.txt
17
-RUN pip3 install -r requirements.txt
18
19
WORKDIR /home/python
20
COPY /src .
+COPY Pipfile .
+COPY Pipfile.lock .
21
+RUN pipenv requirements > requirements.txt
22
+RUN pip3 install -r requirements.txt
23
COPY /gunicorn/gunicorn.py .
24
ENV PATH="/home/python/.local/bin:${PATH}"
25
EXPOSE 8000
0 commit comments