Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kvankova committed Oct 19, 2024
1 parent 5a63898 commit 97a7ca3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-code-embedder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Code Embedder
uses: ./
env:
Expand Down
17 changes: 14 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
FROM alpine:3.10
FROM python:3.11-slim

ENV GITHUB_TOKEN=${GITHUB_TOKEN}
ENV GITHUB_REPOSITORY=${GITHUB_REPOSITORY}
ENV GITHUB_SHA=${GITHUB_SHA}

COPY main.py /app/main.py
WORKDIR /app

ENTRYPOINT ["python3", "/app/main.py"]
RUN apt-get update \
&& pip install poetry==1.8.4

RUN poetry config virtualenvs.create false

COPY . /app/

ENV PATH="$POETRY_HOME/bin:$PATH"

RUN poetry install

ENTRYPOINT ["poetry", "run", "python", "/app/main.py"]
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@

## Script example 1
```python:examples/example.py
import os

print("Code to embed")
```

Meow meow

## Script example 2
```python:examples/example.py
import os

print("Code to embed")
```

### Viu viu
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ runs:
using: docker
image: Dockerfile
args:
- ${{ inputs.readme_path }}
- ${{ inputs.readme_path || 'README.md' }}

0 comments on commit 97a7ca3

Please sign in to comment.