Spaces:
Runtime error
Runtime error
update
Browse files- Dockerfile +10 -8
Dockerfile
CHANGED
|
@@ -12,21 +12,23 @@ RUN ls -al
|
|
| 12 |
FROM python:3.10-slim AS backend
|
| 13 |
WORKDIR /app
|
| 14 |
|
| 15 |
-
RUN apt-get update && apt-get install --no-install-recommends -y \
|
| 16 |
-
|
| 17 |
-
|
| 18 |
|
| 19 |
-
RUN useradd -m -u 1000 user
|
| 20 |
|
| 21 |
COPY ./requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 23 |
|
| 24 |
-
|
| 25 |
-
ENV HOME=/home/user \
|
| 26 |
-
PATH=/home/user/.local/bin:$PATH
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
|
|
|
| 30 |
COPY --from=builder /app/build ./static
|
| 31 |
COPY . .
|
| 32 |
|
|
|
|
| 12 |
FROM python:3.10-slim AS backend
|
| 13 |
WORKDIR /app
|
| 14 |
|
| 15 |
+
# RUN apt-get update && apt-get install --no-install-recommends -y \
|
| 16 |
+
# git ffmpeg curl gnupg \
|
| 17 |
+
# && apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
+
# RUN useradd -m -u 1000 user
|
| 20 |
|
| 21 |
COPY ./requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 23 |
|
| 24 |
+
EXPOSE 5000
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
# USER user
|
| 27 |
+
# ENV HOME=/home/user \
|
| 28 |
+
# PATH=/home/user/.local/bin:$PATH
|
| 29 |
|
| 30 |
+
|
| 31 |
+
WORKDIR /app
|
| 32 |
COPY --from=builder /app/build ./static
|
| 33 |
COPY . .
|
| 34 |
|