-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.base
More file actions
19 lines (17 loc) · 1005 Bytes
/
Copy pathDockerfile.base
File metadata and controls
19 lines (17 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM haskell:8.6.5
WORKDIR /opt/abhinavsarkar.net
COPY site.cabal stack.yaml ./
COPY Site ./Site
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl=7.52\* \
&& curl -sL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get -yq --no-install-suggests --no-install-recommends --force-yes install google-chrome-stable=78\* nodejs=10.17\* jq=1.5\* libgd-dev=2.2\* \
&& rm -rf /var/lib/apt/lists/*
RUN npm init -y > /dev/null \
&& npm install --save chrome-headless-render-pdf@1.7.2
RUN stack upgrade \
&& stack --no-terminal install --flag hakyll:-previewServer --flag hakyll:-watchServer --flag hakyll:-checkExternal --fast --only-dependencies -j6 \
&& rm -rf site.cabal stack.yaml Site