-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.git* | ||
Dockerfile* | ||
Containerfile* | ||
.dockerignore | ||
.pre-commit* | ||
docker-compose.yml | ||
venv* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
FROM buildkite/puppeteer | ||
FROM node:bookworm-slim | ||
|
||
WORKDIR . | ||
# We don't need the standalone Chromium | ||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y awscli curl | ||
# Install Google Chrome Stable and fonts | ||
# Note: this installs the necessary libs to make the browser work with Puppeteer. | ||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked apt-get update \ | ||
&& apt-get install -y gnupg wget awscli curl \ | ||
&& wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg \ | ||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ | ||
&& apt-get update && apt-get install google-chrome-stable -y --no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY grafana_pdf.js grafana_pdf_exporter.sh sendgridSendEmail.sh ./ | ||
USER node | ||
WORKDIR /app | ||
|
||
COPY --chown=node:node . . | ||
|
||
# just run the container doing nothing | ||
ENTRYPOINT ["sh", "-c", "sleep infinity"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters