Arpit-Bansal commited on
Commit
38d7c96
1 Parent(s): c6d4f9d

testing dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -3,8 +3,12 @@ RUN useradd -m -u 1000 user
3
  USER user
4
  WORKDIR /code
5
  RUN chown -R user:user /code
 
 
 
6
  COPY ./requirements.txt ./
7
  RUN pip install --no-cache-dir -r ./requirements.txt
8
- COPY --chown=user:user . /code
 
9
  # COPY . .
10
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
3
  USER user
4
  WORKDIR /code
5
  RUN chown -R user:user /code
6
+ ENV HOME=/home/user
7
+ ENV PATH=/home/user/.local/bin:$PATH
8
+ WORKDIR $HOME/app
9
  COPY ./requirements.txt ./
10
  RUN pip install --no-cache-dir -r ./requirements.txt
11
+ COPY --chown=user . $HOME/app
12
+ # COPY --chown=user:user . /code
13
  # COPY . .
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]