-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
48 lines (33 loc) · 1.22 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
43
44
45
46
47
48
FROM python:3.7-stretch
WORKDIR /app
# for production-level WSGI capability
RUN pip install waitress
# for Redis cachine service
RUN apt-get update && apt-get install redis-server -y
# for thumbnail system dependencies
RUN wget -O nodesetup.sh https://deb.nodesource.com/setup_10.x && bash nodesetup.sh \
&& apt-get install -y build-essential nodejs libx11-xcb1 libxtst6 libnss3 libasound2 libatk-bridge2.0-0 libgtk-3-0
# for thumbnail library dependencies
COPY package-lock.json /app
# install the items in the package-lock.json file
RUN npm install
# install puppeteer and chromium, which doesn't seem to
# work straight from the package-lock.json file
RUN npm install puppeteer
# for Python environment dependencies
# RUN pip install pipenv
# COPY Pipfile.lock Pipfile /app/
# COPY Pipfile /app/
# RUN pipenv install --system
# for Python environment dependencies
COPY requirements.txt /
RUN pip install -r /requirements.txt
# installing the MementoEmbed application
COPY . /app
# workaround for README.md compliance with PyPI
RUN pip install .
COPY sample_appconfig.cfg /etc/mementoembed.cfg
RUN mkdir /app/logs && mkdir -p /app/thumbnails && mkdir -p /app/imagereels
EXPOSE 5550
CMD [ "./dockerstart.sh" ]
# CMD ["/bin/bash"]