-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
21 lines (14 loc) · 847 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.13-slim
RUN /usr/sbin/useradd --create-home --shell /bin/bash --user-group python
USER python
RUN /usr/local/bin/python -m venv /home/python/venv
ENV PATH="/home/python/venv/bin:${PATH}" \
PYTHONUNBUFFERED="1"
COPY --chown=python:python requirements.txt /home/python/podcast-tools/requirements.txt
RUN /home/python/venv/bin/pip install --no-cache-dir --requirement /home/python/podcast-tools/requirements.txt
COPY --chown=python:python download_podcast.py /home/python/podcast-tools/download_podcast.py
COPY --chown=python:python make_podcast.py /home/python/podcast-tools/make_podcast.py
WORKDIR /home/python/podcast-tools
ENTRYPOINT ["/bin/sh"]
LABEL org.opencontainers.image.authors="William Jackson <[email protected]>" \
org.opencontainers.image.source="https://github.com/williamjacksn/podcast-tools"