Spaces:
Sleeping
Sleeping
Commit
·
1bdc79f
1
Parent(s):
263b3db
fix: Dockerfile2
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -18,19 +18,18 @@ RUN apt-get update && apt-get install -y \
|
|
| 18 |
mc \
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
-
RUN useradd -m -u 1000 user
|
| 22 |
-
USER user
|
| 23 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
| 24 |
-
|
| 25 |
WORKDIR /app
|
| 26 |
|
| 27 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 28 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 29 |
-
|
| 30 |
# Install Playwright browsers
|
| 31 |
RUN pip install playwright
|
| 32 |
RUN playwright install --with-deps
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
COPY --chown=user . /app
|
| 35 |
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 36 |
CMD ["python", "server.py"]
|
|
|
|
| 18 |
mc \
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
WORKDIR /app
|
| 22 |
|
| 23 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 24 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 25 |
# Install Playwright browsers
|
| 26 |
RUN pip install playwright
|
| 27 |
RUN playwright install --with-deps
|
| 28 |
|
| 29 |
+
RUN useradd -m -u 1000 user
|
| 30 |
+
USER user
|
| 31 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
| 32 |
+
|
| 33 |
COPY --chown=user . /app
|
| 34 |
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 35 |
CMD ["python", "server.py"]
|