Skip to content

Commit 450aa08

Browse files
authored
Merge pull request #134 from cmu-delphi/staging
Staging
2 parents 070f5ce + 275c503 commit 450aa08

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

+6-4
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)