Spaces:
Running
Running
update docker file create
Browse files
app.py
CHANGED
@@ -1373,16 +1373,16 @@ with gr.Blocks(
|
|
1373 |
req_path = os.path.join(temp_dir, "requirements.txt")
|
1374 |
with open(req_path, "w") as f:
|
1375 |
f.write(reqs)
|
1376 |
-
# 2. Write Dockerfile (EXACT content as screenshot,
|
1377 |
dockerfile_content = '''FROM python:3.9-slim
|
1378 |
|
1379 |
WORKDIR /app
|
1380 |
|
1381 |
-
RUN apt-get update && apt-get install -y
|
1382 |
-
build-essential
|
1383 |
-
curl
|
1384 |
-
software-properties-common
|
1385 |
-
git
|
1386 |
&& rm -rf /var/lib/apt/lists/*
|
1387 |
|
1388 |
COPY requirements.txt ./
|
|
|
1373 |
req_path = os.path.join(temp_dir, "requirements.txt")
|
1374 |
with open(req_path, "w") as f:
|
1375 |
f.write(reqs)
|
1376 |
+
# 2. Write Dockerfile (EXACT content as screenshot, with proper line breaks)
|
1377 |
dockerfile_content = '''FROM python:3.9-slim
|
1378 |
|
1379 |
WORKDIR /app
|
1380 |
|
1381 |
+
RUN apt-get update && apt-get install -y \\
|
1382 |
+
build-essential \\
|
1383 |
+
curl \\
|
1384 |
+
software-properties-common \\
|
1385 |
+
git \\
|
1386 |
&& rm -rf /var/lib/apt/lists/*
|
1387 |
|
1388 |
COPY requirements.txt ./
|