-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
41 lines (34 loc) · 1.18 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
FROM python:3.5
MAINTAINER Josh Mandel
# Install required packages
RUN apt-get update
RUN apt-get install -y \
xvfb unzip \
redis-server \
supervisor
#========
# Firefox ESR
#========
ENV FIREFOX_VERSION 68.0
RUN apt-get install -y firefox-esr \
&& apt-get purge -y firefox-esr
# Install the firefox binary
RUN wget --no-verbose -O /tmp/firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 \
&& rm -rf /opt/firefox \
&& tar -C /opt -xjf /tmp/firefox.tar.bz2 \
&& rm /tmp/firefox.tar.bz2 \
&& mv /opt/firefox /opt/firefox-$FIREFOX_VERSION \
&& ln -fs /opt/firefox-$FIREFOX_VERSION/firefox /usr/bin/firefox
# Clean up now that we're done
RUN apt-get clean
# Install the app
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
ENV FLASK_APP "/usr/src/app/app.py"
ENV FLASK_SECRET_KEY "ssssssssssh"
ENV SQLALCHEMY_DATABASE_URI "sqlite:///db/db.sqlite3"
ENV BLOOM_FILTER_URL https://s3.amazonaws.com/fhir-code-validation/codes.bf
CMD ["supervisord", "-c", "supervisord.conf"]