akhaliq HF Staff commited on
Commit
a8d684e
·
1 Parent(s): 934469f

update docker file create

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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, no escaping)
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 ./