Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
-
FROM python:3.9
|
2 |
|
3 |
WORKDIR /data/app
|
4 |
|
5 |
-
# Install system dependencies required for TensorFlow
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
wget \
|
8 |
python3-dev \
|
@@ -14,17 +13,14 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
libglib2.0-0 \
|
15 |
&& apt-get clean
|
16 |
|
17 |
-
|
18 |
RUN pip install --upgrade pip && pip install tensorflow
|
19 |
|
20 |
-
# Copy and install dependencies
|
21 |
COPY requirements.txt ./
|
22 |
RUN pip install -r requirements.txt
|
23 |
|
24 |
-
# Download the model file
|
25 |
RUN wget -O /data/app/sneaker_category_predictor_v2.h5 "https://huggingface.co/thejagstudio/SneakerAI/resolve/main/sneaker_category_predictor_v2.h5?download=true"
|
26 |
|
27 |
-
# Copy application files
|
28 |
COPY . .
|
29 |
|
30 |
EXPOSE 7860
|
|
|
1 |
+
FROM python:3.9
|
2 |
|
3 |
WORKDIR /data/app
|
4 |
|
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
wget \
|
7 |
python3-dev \
|
|
|
13 |
libglib2.0-0 \
|
14 |
&& apt-get clean
|
15 |
|
16 |
+
|
17 |
RUN pip install --upgrade pip && pip install tensorflow
|
18 |
|
|
|
19 |
COPY requirements.txt ./
|
20 |
RUN pip install -r requirements.txt
|
21 |
|
|
|
22 |
RUN wget -O /data/app/sneaker_category_predictor_v2.h5 "https://huggingface.co/thejagstudio/SneakerAI/resolve/main/sneaker_category_predictor_v2.h5?download=true"
|
23 |
|
|
|
24 |
COPY . .
|
25 |
|
26 |
EXPOSE 7860
|