Commit ·
bea99bf
1
Parent(s): e70cc63
Updated readme
Browse files- Dockerfile +1 -42
- README.md +2 -1
Dockerfile
CHANGED
|
@@ -1,46 +1,6 @@
|
|
| 1 |
-
# # Use the official Python image as a base
|
| 2 |
-
# FROM python:3.10-slim-buster
|
| 3 |
-
|
| 4 |
-
# # Set the working directory in the container
|
| 5 |
-
# WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# # Copy the app files into the container
|
| 8 |
-
# COPY . .
|
| 9 |
-
|
| 10 |
-
# # Install required packages
|
| 11 |
-
# RUN pip install -r requirements.txt
|
| 12 |
-
|
| 13 |
-
# # Expose the port that Streamlit uses
|
| 14 |
-
# EXPOSE 8501
|
| 15 |
-
|
| 16 |
-
# # Run the Streamlit app
|
| 17 |
-
# CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
# Use the official Python image as a base
|
| 31 |
FROM python:3.10-slim-buster
|
| 32 |
|
| 33 |
-
# Install system dependencies required to build scikit-surprise
|
| 34 |
-
RUN apt-get update && apt-get install -y \
|
| 35 |
-
build-essential \
|
| 36 |
-
gcc \
|
| 37 |
-
python3-dev \
|
| 38 |
-
libxml2 \
|
| 39 |
-
libxmlsec1 \
|
| 40 |
-
libxslt1-dev \
|
| 41 |
-
libffi-dev \
|
| 42 |
-
&& apt-get clean
|
| 43 |
-
|
| 44 |
# Set the working directory in the container
|
| 45 |
WORKDIR /app
|
| 46 |
|
|
@@ -48,11 +8,10 @@ WORKDIR /app
|
|
| 48 |
COPY . .
|
| 49 |
|
| 50 |
# Install required packages
|
| 51 |
-
RUN pip install --upgrade pip
|
| 52 |
RUN pip install -r requirements.txt
|
| 53 |
|
| 54 |
# Expose the port that Streamlit uses
|
| 55 |
EXPOSE 8501
|
| 56 |
|
| 57 |
# Run the Streamlit app
|
| 58 |
-
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Use the official Python image as a base
|
| 2 |
FROM python:3.10-slim-buster
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Set the working directory in the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
# Install required packages
|
|
|
|
| 11 |
RUN pip install -r requirements.txt
|
| 12 |
|
| 13 |
# Expose the port that Streamlit uses
|
| 14 |
EXPOSE 8501
|
| 15 |
|
| 16 |
# Run the Streamlit app
|
| 17 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
README.md
CHANGED
|
@@ -8,7 +8,8 @@ sdk_version: 1.41.1
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
-
---
|
|
|
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 13 |
|
| 14 |
# Welcome to Anime Recommendation system
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 14 |
|
| 15 |
# Welcome to Anime Recommendation system
|