Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Stage 1: Build stage (installs docker)
|
2 |
-
FROM python:3.
|
3 |
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
docker-ce \
|
@@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
RUN docker builder prune -f
|
11 |
|
12 |
# Stage 2: Final stage
|
13 |
-
FROM python:3.
|
14 |
|
15 |
USER root
|
16 |
RUN apt-get update && \
|
@@ -37,8 +37,10 @@ RUN git clone https://huggingface.co/fudan-generative-ai/hallo pretrained_models
|
|
37 |
# Install Python dependencies
|
38 |
RUN pip install --no-cache-dir -r requirements.txt
|
39 |
|
40 |
-
|
41 |
-
|
|
|
|
|
42 |
|
43 |
# Set the command to run the application
|
44 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "300", "app_hallo:app"]
|
|
|
1 |
# Stage 1: Build stage (installs docker)
|
2 |
+
FROM python:3.10 AS builder
|
3 |
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
docker-ce \
|
|
|
10 |
RUN docker builder prune -f
|
11 |
|
12 |
# Stage 2: Final stage
|
13 |
+
FROM python:3.10
|
14 |
|
15 |
USER root
|
16 |
RUN apt-get update && \
|
|
|
37 |
# Install Python dependencies
|
38 |
RUN pip install --no-cache-dir -r requirements.txt
|
39 |
|
40 |
+
RUN ls -la
|
41 |
+
|
42 |
+
# Install the current package with verbose output
|
43 |
+
RUN pip install . --verbose
|
44 |
|
45 |
# Set the command to run the application
|
46 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "300", "app_hallo:app"]
|