-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (34 loc) · 1009 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
37
38
39
40
41
42
43
# pull official base image
FROM python:3.8.0-alpine
# set work directory
WORKDIR /usr/src/cv_uploader/src/
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install psycopg2 dependencies
RUN apk update \
&& apk add postgresql-dev gcc python3-dev musl-dev postgresql postgresql-contrib
RUN apk --update add \
build-base \
jpeg-dev \
zlib-dev \
sudo \
bash \
poppler \
tesseract-ocr
RUN apk add poppler-utils
#RUN chmod g+rx,o+rx /
#RUN adduser -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
# install dependencies
#RUN pip install --upgrade pip
RUN pip install psycopg2-binary
COPY ./requirements.txt /usr/src/cv_uploader/requirements.txt
RUN pip install -r ../requirements.txt
# copy entrypoint.sh
#COPY ./app/entrypoint.sh /usr/src/app/entrypoint.sh
# copy project
COPY . /usr/src/cv_uploader
RUN pip3 install nltk
RUN pip3 install spacy
RUN python ../pre_requisites.py
#ENTRYPOINT ["/usr/src/app/entrypoint.sh"]