planetoftheweb / podcast-generator

Generates podcast feeds using YAML, hosted by GitHub pages.
MIT License
18 stars 14 forks source link

Dockerfile generates error #4

Open FolBol opened 1 month ago

FolBol commented 1 month ago

As Dhylan correctly states in the course - the Dockerfile needs correction:

Dockerfile: apt-get install -y python3-yaml instead of pip3 install PyYAML

corrected version can look like this...

FROM ubuntu:latest

# Update apt-get and install necessary packages
RUN apt-get update && apt-get install -y \
    python3.12 \
    python3-pip \
    git \
    python3-yaml

# RUN pip3 install PyYAML     --> which generates the error 1 and fails the build.

# Copy feed.py file to the Docker image
COPY feed.py /usr/bin/feed.py

# Copy entrypoint.sh file to the Docker image
COPY entrypoint.sh /entrypoint.sh

# Set the entrypoint for the Docker image
ENTRYPOINT ["/entrypoint.sh"]
yashpatle23 commented 1 week ago

thanks bro i had same error then it got solved

mjbear commented 1 day ago

I was wondering if anyone else ran into this :wink: