Spaces:
Sleeping
Sleeping
Commit
·
73574a2
1
Parent(s):
56cd00b
update service port
Browse files- Dockerfile +20 -2
- README.md +1 -0
Dockerfile
CHANGED
|
@@ -1,10 +1,28 @@
|
|
| 1 |
FROM ubuntu:24.04
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY . /app
|
| 6 |
|
| 7 |
-
RUN pip install --no-cache-dir --upgrade
|
|
|
|
| 8 |
|
| 9 |
# Set up a new user named "user" with user ID 1000
|
| 10 |
RUN useradd -m -u 1000 user
|
|
@@ -22,4 +40,4 @@ WORKDIR $HOME/app
|
|
| 22 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 23 |
COPY --chown=user . $HOME/app
|
| 24 |
|
| 25 |
-
CMD ["streamlit", "run", "app.py", "--server.port", "8200"]
|
|
|
|
| 1 |
FROM ubuntu:24.04
|
| 2 |
|
| 3 |
+
# Set environment to noninteractive to avoid prompts during package installation
|
| 4 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
+
|
| 6 |
+
# Install required packages: python3, pip, and pdflatex (via texlive)
|
| 7 |
+
RUN apt-get update && apt-get install -y \
|
| 8 |
+
python3 \
|
| 9 |
+
python3-pip \
|
| 10 |
+
texlive-latex-base \
|
| 11 |
+
texlive-fonts-recommended \
|
| 12 |
+
texlive-fonts-extra \
|
| 13 |
+
texlive-latex-recommended \
|
| 14 |
+
texlive-xetex \
|
| 15 |
+
texlive-luatex \
|
| 16 |
+
lmodern \
|
| 17 |
+
&& apt-get clean \
|
| 18 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 19 |
+
|
| 20 |
WORKDIR /app
|
| 21 |
|
| 22 |
COPY . /app
|
| 23 |
|
| 24 |
+
RUN pip install --no-cache-dir --upgrade pip \
|
| 25 |
+
&& pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 26 |
|
| 27 |
# Set up a new user named "user" with user ID 1000
|
| 28 |
RUN useradd -m -u 1000 user
|
|
|
|
| 40 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 41 |
COPY --chown=user . $HOME/app
|
| 42 |
|
| 43 |
+
CMD ["streamlit", "run", "app.py", "--server.port", "8200"]
|
README.md
CHANGED
|
@@ -5,6 +5,7 @@ colorFrom: pink
|
|
| 5 |
colorTo: pink
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 5 |
colorTo: pink
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
+
app_port: 8200
|
| 9 |
---
|
| 10 |
|
| 11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|