Skip to content

Commit 375284c

Browse files
feat: update the Dockerfile and entrypoint script
1 parent 33331c9 commit 375284c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ WORKDIR /app
55
# Copies your code file from your action repository to the filesystem path `/` of the container
66
COPY . /app/
77

8-
# Install pipenv
9-
RUN chmod +x entrypoint.sh && apt-get update -y && curl -LsSf https://astral.sh/uv/install.sh | sh
8+
# Install uv
9+
RUN chmod +x entrypoint.sh && apt-get update -y && pip install uv
10+
# Add uv to PATH
11+
ENV PATH="/root/.local/bin:$PATH"
1012

1113
# Code file to execute when the docker container starts up (`entrypoint.sh`)
1214
ENTRYPOINT ["/app/entrypoint.sh"]

entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22

33
# installng pipenv and creating pipenv venv
4-
cd /app && pipenv install --skip-lock
4+
cd /app && uv sync && uv tree
55

66
# Capture arguments
77
GITHUB_APP_ID="$1"
@@ -10,6 +10,7 @@ OWNER="$3"
1010
REPOSITORIES="$4"
1111

1212
# Build the command based on available parameters
13+
uv --version
1314
CMD="uv run python3 /app/generate_jwt.py --github_app_id \"$GITHUB_APP_ID\" --github_app_private_key \"$GITHUB_APP_PRIVATE_KEY\""
1415

1516
if [ -n "$OWNER" ]; then

0 commit comments

Comments
 (0)