riu-rd commited on
Commit
8ff276b
1 Parent(s): 25eda0a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN useradd -m -u 1000 user
14
  # Set the user and home directory environment variables
15
  USER user
16
  ENV HOME=/home/user \
17
- PATH=/home/user/.local/bin:$PATH
18
 
19
  # Create the application directory
20
  WORKDIR $HOME/app
@@ -22,14 +22,8 @@ WORKDIR $HOME/app
22
  # Copy the application code and model files
23
  COPY --chown=user . $HOME/app/
24
 
25
- # Ensure the directory for the SavedModel exists
26
- RUN mkdir -p prod_models/emo_model_tf
27
-
28
- # Specify the correct path to the SavedModel
29
- ENV SAVED_MODEL_PATH=$HOME/app/prod_models/emo_model_tf
30
-
31
  # Expose the port the FastAPI app runs on
32
  EXPOSE 7860
33
 
34
  # Command to run the FastAPI app
35
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
14
  # Set the user and home directory environment variables
15
  USER user
16
  ENV HOME=/home/user \
17
+ PATH=/home/user/.local/bin:$PATH
18
 
19
  # Create the application directory
20
  WORKDIR $HOME/app
 
22
  # Copy the application code and model files
23
  COPY --chown=user . $HOME/app/
24
 
 
 
 
 
 
 
25
  # Expose the port the FastAPI app runs on
26
  EXPOSE 7860
27
 
28
  # Command to run the FastAPI app
29
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]