Skip to content

Commit f46cecd

Browse files
committed
Updated Dockerfile to use locked versions
1 parent d4db952 commit f46cecd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:22.04
22

33
ENV PYTHONDONTWRITEBYTECODE=1
44
ENV PYTHONUNBUFFERED=1
5-
COPY Pipfile Pipfile.lock ./
5+
66

77
RUN apt-get update -y
88
RUN apt-get install -y gcc default-libmysqlclient-dev pkg-config
@@ -12,12 +12,14 @@ RUN apt-get install python3 -y
1212
RUN apt-get install python3-pip -y
1313
RUN python3 -m pip install --upgrade pip
1414
RUN pip3 install pipenv
15-
RUN pipenv lock
16-
RUN pipenv requirements > requirements.txt
17-
RUN pip3 install -r requirements.txt
15+
1816

1917
WORKDIR /home/python
2018
COPY /src .
19+
COPY Pipfile .
20+
COPY Pipfile.lock .
21+
RUN pipenv requirements > requirements.txt
22+
RUN pip3 install -r requirements.txt
2123
COPY /gunicorn/gunicorn.py .
2224
ENV PATH="/home/python/.local/bin:${PATH}"
2325
EXPOSE 8000

0 commit comments

Comments
 (0)