Skip to content

Commit

Permalink
chg: rename and simplify docker file
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Arnold <[email protected]>
  • Loading branch information
sarnold committed Mar 13, 2024
1 parent 2a6043f commit 156e547
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.9-alpine3.16

RUN apk --no-cache add git bash

ADD entrypoint.sh /
ADD token_getter.py /

RUN pip install --no-cache-dir \
cryptography==42.0.5 \
github3.py==4.0.1 \
jwcrypto==1.5.6 \
pyjwt==2.8.0

RUN chmod u+x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
4 changes: 2 additions & 2 deletions entrypoint.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

echo $INPUT_APP_PEM | base64 -d > pem.txt
python /app/token_getter.py
python token_getter.py
14 changes: 0 additions & 14 deletions prebuild.Dockerfile

This file was deleted.

0 comments on commit 156e547

Please sign in to comment.