ASC8384 commited on
Commit
98c77e8
·
1 Parent(s): 4c7be44
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -52,9 +52,10 @@ RUN apt-get update && apt-get install -y \
52
  libopus0 \
53
  && rm -rf /var/lib/apt/lists/*
54
 
55
- WORKDIR /app
56
 
57
 
 
58
  # RUN pip install --no-cache-dir -r requirements.txt
59
  # Install Python dependencies
60
  RUN pip install --upgrade pip
@@ -75,4 +76,6 @@ RUN playwright install
75
  # 暴露端口
76
  EXPOSE 7860
77
 
78
- CMD ["sh", "-c", "python init_playwright.py && python app.py"]
 
 
 
52
  libopus0 \
53
  && rm -rf /var/lib/apt/lists/*
54
 
55
+ # WORKDIR /app
56
 
57
 
58
+ WORKDIR /code
59
  # RUN pip install --no-cache-dir -r requirements.txt
60
  # Install Python dependencies
61
  RUN pip install --upgrade pip
 
76
  # 暴露端口
77
  EXPOSE 7860
78
 
79
+ COPY --chown=user:user . /code
80
+ # CMD ["sh", "-c", "python init_playwright.py && python app.py"]
81
+ CMD ["python", "app.py"]