Skip to content

Commit ce7c6ec

Browse files
authored
Update README.md
Updated README.md to account for new base venv directory and instructions.
1 parent 4cd96dd commit ce7c6ec

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ COPY requirements.txt /requirements.txt
2222
RUN uv pip install -r /requirements.txt
2323
2424
FROM gcr.io/distroless/python3-debian12
25-
COPY --from=build-venv /venv /venv
25+
COPY --from=build-venv /.venv /.venv
2626
COPY /main.py /app/main.py
2727
WORKDIR /app
28-
ENTRYPOINT ["/venv/bin/python3", "-u", "main.py"]
28+
ENTRYPOINT ["/.venv/bin/python3", "-u", "main.py"]
2929
```
3030

3131
### Usage/Explanation
@@ -39,4 +39,5 @@ ENTRYPOINT ["/venv/bin/python3", "-u", "main.py"]
3939
I have a lot of personal projects that I run in Github Actions in private repositories; Github offers generous limits to their free tier, but for the sake of simplification, I moved the most costly part (initializing a base Python build image based on Debian with what I usually need) to this public repo, which isn't charged. So now I have made all my workloads faster, and hopefully someone else will get benefit from this as well!
4040

4141
### Inspiration
42-
Most of the code I used here is based on the example straight from the distroless repository: https://github.com/GoogleContainerTools/distroless/tree/main/examples/python3-requirements
42+
43+
Most of the code I used here is based on the example straight from the distroless repository: https://github.com/GoogleContainerTools/distroless/tree/main/examples/python3-requirements

0 commit comments

Comments
 (0)