-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (32 loc) · 1.03 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
FROM python:3.11.9
WORKDIR /usr/src/app
RUN mkdir run
RUN mkdir logs/
RUN mkdir bin
RUN mkdir data
RUN apt-get update && apt-get upgrade -y && apt-get autoremove && apt-get autoclean
# most of these are for lxml which needs a bunch of dependancies installed
RUN apt-get install elpa-magit -y
RUN apt-get install -y \
libffi-dev \
libssl-dev \
libxml2-dev \
libxslt-dev \
libjpeg-dev \
libfreetype6-dev \
zlib1g-dev \
net-tools \
git-all \
supervisor \
vim \
redis-server
COPY docker_scripts/vogon-gunicorn.sh bin/
COPY docker_scripts/vogon-supervisord.conf /etc/supervisor/conf.d/
COPY docker_scripts/vogon-backend-startup.sh bin/
RUN ["chmod", "+x", "/usr/src/app/bin/vogon-backend-startup.sh"]
RUN ["chmod", "+x", "/usr/src/app/bin/vogon-gunicorn.sh"]
# TODO: This should be changed to master once we are done testing
RUN git clone -b develop https://github.com/diging/vogon-web.git
WORKDIR /usr/src/app/vogon-web
RUN pip install -r requirements.txt
ENTRYPOINT ["../bin/vogon-backend-startup.sh"]