Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y git git-lfs
|
|
8 |
RUN git-lfs install
|
9 |
|
10 |
# Create a non-root user and set up environment variables
|
11 |
-
RUN useradd -m -u
|
12 |
|
13 |
# Set environment variables
|
14 |
ENV HOME=/home/user \
|
@@ -25,7 +25,7 @@ WORKDIR $HOME/app
|
|
25 |
COPY --chown=user:user requirements.txt .
|
26 |
|
27 |
# Clone the Hugging Face model repository (replace with the desired model URL)
|
28 |
-
RUN git clone https://huggingface.co/matsant01/STEMerald-2b $HOME/app
|
29 |
|
30 |
# Install dependencies
|
31 |
RUN pip install --no-cache-dir -r requirements.txt
|
@@ -34,6 +34,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
34 |
COPY --chown=user:user . .
|
35 |
|
36 |
# Expose the port and run the app with Uvicorn
|
37 |
-
EXPOSE
|
38 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
39 |
|
|
|
8 |
RUN git-lfs install
|
9 |
|
10 |
# Create a non-root user and set up environment variables
|
11 |
+
RUN useradd -m -u 1000 user
|
12 |
|
13 |
# Set environment variables
|
14 |
ENV HOME=/home/user \
|
|
|
25 |
COPY --chown=user:user requirements.txt .
|
26 |
|
27 |
# Clone the Hugging Face model repository (replace with the desired model URL)
|
28 |
+
RUN git clone https://huggingface.co/matsant01/STEMerald-2b $HOME/app
|
29 |
|
30 |
# Install dependencies
|
31 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
34 |
COPY --chown=user:user . .
|
35 |
|
36 |
# Expose the port and run the app with Uvicorn
|
37 |
+
EXPOSE 7860
|
38 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
39 |
|