sarthaksavvy commited on
Commit
d53c848
·
1 Parent(s): 845773b

[main] update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -7,4 +7,13 @@ RUN pip install fastapi uvicorn transformers
7
  RUN pip install h5py --only-binary h5py
8
  RUN pip install tensorflow tf-keras torch torchvision
9
 
 
 
 
 
 
 
 
 
 
10
  CMD fastapi run --reload --host=0.0.0.0 --port=7860
 
7
  RUN pip install h5py --only-binary h5py
8
  RUN pip install tensorflow tf-keras torch torchvision
9
 
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ # Set the working directory to the user's home directory
14
+ WORKDIR $HOME/app
15
+
16
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
17
+ COPY --chown=user . $HOME/app
18
+
19
  CMD fastapi run --reload --host=0.0.0.0 --port=7860