-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerFilevadetis
42 lines (31 loc) · 1.09 KB
/
DockerFilevadetis
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
37
38
39
40
41
42
# pull the official base image
FROM python:3.9-alpine
# set work directory
WORKDIR /usr/src/app
RUN apk add --no-cache postgresql-dev
RUN apk add --no-cache build-base
RUN apk add --no-cache gfortran openblas-dev lapack-dev
RUN apk add --no-cache jpeg-dev zlib-dev
RUN apk add --no-cache libffi-dev openssl-dev python3-dev
RUN apk add --no-cache zeromq zeromq-dev
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install dependencies
#COPY ./requirements_slow.txt /usr/src/app
#RUN pip install -r requirements_slow.txt
RUN pip3 install --no-cache-dir \
pandas==1.3.5 \
psycopg2-binary==2.9.1
# matplotlib==3.5.1
RUN pip3 install --disable-pip-version-check scikit-optimize==0.9.0
RUN pip3 install --disable-pip-version-check scikit-learn==1.0.2
RUN pip3 install --disable-pip-version-check scipy==1.7.1
COPY ./requirements.txt /usr/src/app
RUN pip install -r requirements.txt
# copy project
COPY . /usr/src/app
COPY ./entrypoint.sh /usr/src/app
ENTRYPOINT ["sh", "/usr/src/app/entrypoint.sh"]
#sudo docker-compose build --no-cache web
#sudo docker-compose up web