-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (25 loc) · 883 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:3.8.10-slim
# Setup env
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONFAULTHANDLER 1
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc make
WORKDIR /app
COPY ["Pipfile", "Pipfile.lock", "Makefile", "./"]
COPY src/ /app/src/
RUN python -m pip install --upgrade pip && \
pip install pipenv && \
pipenv install --system --deploy --ignore-pipfile
ENV PATH=".venv/bin:$PATH"
#pip install pipenv && \
#pipenv lock --keep-outdated --requirements > requirements.txt && \
#pip install -r requirements.txt
#RUN pipenv install --system --deploy --ignore-pipfile
#RUN pip install pipenv
#RUN pipenv requirements > requirements.txt
#RUN pipenv lock --keep-outdated --requirements > requirements.txt
#RUN pip install -r requirements.txt
RUN mkdir output
ENTRYPOINT ["python","src/model_predict.py"]