forked from ResearchHub/researchhub-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (31 loc) · 1.19 KB
/
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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC
RUN apt-get update && \
apt-get install --no-install-recommends -y gcc && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update -y
RUN apt-get -y install python3.8-dev
RUN apt-get -y install python3-setuptools
RUN apt-get -y install python3-pip
RUN apt-get -y install libpq-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
RUN python3 -m pip install --upgrade pip
RUN apt-get -y install default-jre
RUN apt-get -y install redis-server
COPY src/requirements.txt .
RUN pip3 install -r requirements.txt --no-deps
RUN python3 -m pip install -U "watchdog[watchmedo]"
RUN mkdir -p /usr/app/src
RUN mkdir /usr/app/src/config_local
COPY . /usr/app/
COPY /misc/hub_hub.csv /usr/misc/hub_hub.csv
COPY db_config.sample.py /usr/app/src/config_local/db.py
COPY keys.sample.py /usr/app/src/config_local/keys.py
COPY twitter_config_sample.py /usr/app/src/config_local/twitter.py
RUN mkdir -p /tmp/pdf_cermine/
RUN cp /usr/bin/python3 /usr/bin/python
WORKDIR /usr/app/src
# ENTRYPOINT [ "/usr/bin/python3.6", "-m", "awslambdaric" ]
# CMD [ "researchhub.aws_lambda.handler" ]
# This is for debugging
#CMD [ "/bin/bash" ]