Skip to content

Commit a5fe7ce

Browse files
im a dumbass smh, also switch to alpine
1 parent 798d3d3 commit a5fe7ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the official Python image as a base
2-
FROM python:slim
2+
FROM python:alpine
33

44
# Set the working directory in the container
55
WORKDIR /app

app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ async def dynamic_download(request: Request, key: str, file_name: str = Query(..
267267
async with session.get(result) as response:
268268
response.raise_for_status()
269269
content = await response.read()
270+
else:
270271
async with async_playwright() as playwright:
271272
async with playwright.chromium.connect(BROWSER_WS) as browser:
272273
async with browser.new_page() as page:

0 commit comments

Comments
 (0)