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
2
2
3
3
ENV PYTHONDONTWRITEBYTECODE=1
4
4
ENV PYTHONUNBUFFERED=1
5
- COPY Pipfile Pipfile.lock ./
5
+
6
6
7
7
RUN apt-get update -y
8
8
RUN apt-get install -y gcc default-libmysqlclient-dev pkg-config
@@ -12,12 +12,14 @@ RUN apt-get install python3 -y
12
12
RUN apt-get install python3-pip -y
13
13
RUN python3 -m pip install --upgrade pip
14
14
RUN pip3 install pipenv
15
- RUN pipenv lock
16
- RUN pipenv requirements > requirements.txt
17
- RUN pip3 install -r requirements.txt
15
+
18
16
19
17
WORKDIR /home/python
20
18
COPY /src .
19
+ COPY Pipfile .
20
+ COPY Pipfile.lock .
21
+ RUN pipenv requirements > requirements.txt
22
+ RUN pip3 install -r requirements.txt
21
23
COPY /gunicorn/gunicorn.py .
22
24
ENV PATH="/home/python/.local/bin:${PATH}"
23
25
EXPOSE 8000
You can’t perform that action at this time.
0 commit comments