try
Browse files- 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 |
-
|
|
|
|
|
|
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"]
|