forked from siegfried415/portia-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (27 loc) · 1.12 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
FROM ubuntu:14.04
WORKDIR /app/slyd
COPY provision.sh /app/provision.sh
COPY slybot/requirements.txt /app/slybot/requirements.txt
COPY slyd/requirements.txt /app/slyd/requirements.txt
COPY portia_server/requirements.txt /app/portia_server/requirements.txt
COPY docs/requirements.txt /app/docs/requirements.txt
RUN /app/provision.sh install_deps && \
/app/provision.sh install_splash && \
pip install -r /app/slybot/requirements.txt && \
pip install -r /app/slyd/requirements.txt && \
pip install -r /app/portia_server/requirements.txt && \
pip install -r /app/docs/requirements.txt
#/app/provision.sh cleanup
ADD nginx /etc/nginx
ADD scrapyd/scrapyd.conf.template /etc/scrapyd/scrapyd.conf
ADD . /app
RUN pip install -e /app/slyd && \
pip install -e /app/slybot
ADD slyd/do_slyd_start.sh.template /app/slyd/do_slyd_start.sh
RUN /app/provision.sh install_frontend_deps && \
/app/provision.sh build_assets
RUN /app/provision.sh build_docs
RUN python /app/portia_server/manage.py makemigrations portia_dashboard
RUN python /app/portia_server/manage.py migrate
EXPOSE 9001
ENTRYPOINT ["/app/docker/entry"]