File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11FROM python:alpine
22
3- RUN apk update && apk add --no-cache ffmpeg
4- RUN pip3 install flask flask-restful feedparser requests pygeocodio yt-dlp podgen
3+ RUN apk update && apk add --no-cache ffmpeg poetry
4+ WORKDIR /app
55COPY . /app
6- ENTRYPOINT ["python3" , "/app/src/ethancedwards_api.py" ]
6+ RUN poetry install
7+ ENTRYPOINT ["poetry" , "run" , "start" ]
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3- from ethancedwards_api .server import main
4-
5- print (__name__ )
6-
7- main ()
3+ from ethancedwards_api .server import *
Original file line number Diff line number Diff line change 22
33from ethancedwards_api .server import *
44
5- main ()
5+ if __name__ == '__main__' :
6+ main ()
Original file line number Diff line number Diff line change @@ -40,3 +40,6 @@ def after_request(response):
4040 api .add_resource (AudioFeed , "/audiofeed/v1" )
4141
4242 app .run (host = '0.0.0.0' , port = (8000 if DEV else 80 ))
43+
44+ if __name__ == '__main__' :
45+ main ()
You can’t perform that action at this time.
0 commit comments