tracinginsights commited on
Commit
723d8a7
·
1 Parent(s): 575d525

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -16,16 +16,15 @@ FROM python:3.10.9
16
 
17
  WORKDIR /code
18
 
19
- RUN mkdir /code/cache
20
 
21
  COPY ./requirements.txt /code/requirements.txt
22
 
23
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
24
 
25
- ENV FASTF1_CACHE_DIR="/home/user/fastf1-cache"
26
 
27
  COPY . .
28
 
29
- CMD ["sh", "-c", "mkdir -p $FASTF1_CACHE_DIR && chown -R $USER:$USER $FASTF1_CACHE_DIR && exec uvicorn main:app --host 0.0.0.0 --port 7860"]
30
-
31
 
 
16
 
17
  WORKDIR /code
18
 
19
+ RUN mkdir /code/cache && chmod a+w /code/cache
20
 
21
  COPY ./requirements.txt /code/requirements.txt
22
 
23
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
24
 
25
+ ENV FASTF1_CACHE_DIR="/code/cache"
26
 
27
  COPY . .
28
 
29
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
30