alaa-ahmed14 commited on
Commit
57c32c7
·
verified ·
1 Parent(s): 9bdbe34

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 9000 user
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/model
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 8000
38
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
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