From ecb06142b50ff1f301693f076f080cc8e6610983 Mon Sep 17 00:00:00 2001 From: Erick Navarro Date: Tue, 21 May 2024 13:36:54 -0600 Subject: [PATCH] Change entrypoint to use python script instead of bash --- Dockerfile | 8 +++----- entrypoint.sh | 29 ----------------------------- main.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 34 deletions(-) delete mode 100755 entrypoint.sh create mode 100755 main.py diff --git a/Dockerfile b/Dockerfile index 7fd0d17..03f6bdb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ -FROM alpine:3.19 +FROM python:3.12-alpine -RUN apk --update add curl bash +COPY main.py /main.py -COPY entrypoint.sh /entrypoint.sh - -ENTRYPOINT ["/entrypoint.sh"] +ENTRYPOINT ["/main.py"] diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index 7f91e0c..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -l -# exit on any error -set -e - -PROJECT="${INPUT_PROJECT}" -ENVIRONMENT="${INPUT_ENVIRONMENT}" -IMAGE_VERSION="${INPUT_IMAGE_VERSION}" -GITHUB_USERNAME="${GITHUB_ACTOR}" -TOKEN="${INPUT_TOKEN}" -URL="${INPUT_URL}" - -prepare_payload() { - cat <