From f30903280fa896b002c3ff632c92ecb4f0ed32b0 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Mon, 5 Jul 2021 12:56:01 -0400 Subject: [PATCH] feat: init repo --- Dockerfile | 6 ++++++ entrypoint.sh | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 Dockerfile create mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..264e6a3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM algolia/docsearch-scraper:latest +LABEL maintainer="t@sparanoid.com" + +COPY entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..244d740 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions + +# `$*` expands the `args` supplied in an `array` individually +# or splits `args` in a string separated by whitespace. +sh -c "pipenv run python -m src.index $*"