-
Notifications
You must be signed in to change notification settings - Fork 3
/
gui-Dockerfile
44 lines (33 loc) · 1.75 KB
/
gui-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
ARG PYTAG=3.7.3-stretch
FROM python:${PYTAG}
LABEL org.opencontainers.image.title="Raintale" \
org.opencontainers.image.description="A Python utility and library for publishing a social media story built from archived web pages to multiple services" \
org.opencontainers.image.licenses="MIT License" \
org.opencontainers.image.source="https://github.com/oduwsdl/raintale" \
org.opencontainers.image.documentation="https://raintale.readthedocs.io/" \
org.opencontainers.image.vendor="Web Science and Digital Libraries Research Group at Old Dominion University" \
org.opencontainers.image.authors="Shawn M. Jones <https://github.com/shawnmjones>"
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
# installing the MementoEmbed application
RUN git clone https://github.com/oduwsdl/MementoEmbed.git
RUN pip install -r MementoEmbed/requirements.txt
RUN cd MementoEmbed && pip install .
RUN cd MementoEmbed && npm install
RUN cd MementoEmbed && npm install puppeteer
RUN cp /app/MementoEmbed/sample_appconfig.cfg /etc/mementoembed.cfg
RUN mkdir /app/logs && mkdir -p /app/thumbnails && mkdir -p /app/imagereels
# RUN redis-server --daemonize yes --save ""
# RUN gunicorn -b 0.0.0.0:5550 mementoembed:create_app --daemon
EXPOSE 8000 5550
COPY . ./
RUN ./raintale-gui/install-gui.sh --override-virtualenv-check --install-all
RUN pwd
RUN ls -al
CMD [ "./gui-dockerstart.sh" ]