FROM python:3.11.9-alpine3.19 RUN apk del .python-rundeps RUN apk add --no-cache \ bash \ ffmpeg \ yt-dlp \ nodejs \ npm \ git \ curl \ crystal shards \ musl # Install PhantomJS #RUN curl -k -Ls https://github.com/Nuxify/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz | tar -xzf - #RUN cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs COPY phantomjs/bin/phantomjs /usr/local/bin/phantomjs COPY newleaf/requirements.txt . RUN pip install -r requirements.txt COPY newleaf-start.sh . EXPOSE 3000 CMD ./newleaf-start.sh