-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
21 lines (18 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM scipoptsuite/scipoptsuite:7.0.2
# commit hash or refs/heads/master or refs/tags/v0.0.1 ...
ARG IMPACT_LIB_REF=refs/heads/master
RUN python -m pip install --upgrade pip && \
python -m pip install \
pyscipopt statsmodels sklearn ipython openfoodfacts fastapi uvicorn[standard] \
progressbar2 aiohttp bson python-multipart pytype
RUN apt-get update --allow-releaseinfo-change && \
apt-get -y install curl unzip
# install impact estimator library by just pulling source in impact folder
RUN curl -L -o impact.zip https://github.com/openfoodfacts/off-product-environmental-impact/archive/$IMPACT_LIB_REF.zip && \
unzip impact.zip && \
mv off-product-environmental-impact-* impact && \
rm impact.zip
ENV PYTHONPATH=$PYTHONPATH:/impact
WORKDIR /app
COPY . ./
CMD ["python", "main.py"]