-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (22 loc) · 971 Bytes
/
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
FROM ubuntu:latest
# Install dependencies (1)
RUN apt-get update
RUN apt-get -y install apt-transport-https ca-certificates curl --no-install-recommends
# Add repo and key
RUN curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
# Install chrome and bibtexparser
RUN apt-get update
RUN apt-get install -y google-chrome-stable python wget python-pip python-setuptools --no-install-recommends
RUN pip install -U pip && \
pip install bibtexparser
# Add chrome user
RUN groupadd -r chrome && useradd -r -g chrome -G audio,video chrome \
&& mkdir -p /home/chrome/Downloads
# Add executable
ADD bibtex2pdf.py /home/chrome/bibtex2pdf.py
# Add Downloads folder
RUN mkdir -p /home/chrome/bibtex-downloads
RUN chown -R chrome:chrome /home/chrome
# Clean
RUN apt-get purge --auto-remove -y curl && rm -rf /var/lib/apt/lists/*