eaedk commited on
Commit
bc9577f
1 Parent(s): 6a4cd32
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,12 +1,15 @@
1
  FROM python:3.9
2
  #-slim
3
  # Set up a new user named "user" with user ID 1000
 
4
  RUN useradd -m -u 1000 user
5
 
6
  # Switch to the "user" user
7
  USER user
 
8
 
9
  WORKDIR /app
 
10
 
11
  COPY --chown=user requirements.txt ./
12
 
@@ -15,7 +18,7 @@ RUN pip install -r requirements.txt
15
  EXPOSE 7860
16
 
17
  COPY --chown=user . .
18
- RUN mkdir -p ./.cache
19
- RUN chmod 777 ./.cache
20
 
21
  CMD ["uvicorn", "src.main_sentiment:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
  #-slim
3
  # Set up a new user named "user" with user ID 1000
4
+ RUN pwd
5
  RUN useradd -m -u 1000 user
6
 
7
  # Switch to the "user" user
8
  USER user
9
+ RUN pwd
10
 
11
  WORKDIR /app
12
+ RUN pwd
13
 
14
  COPY --chown=user requirements.txt ./
15
 
 
18
  EXPOSE 7860
19
 
20
  COPY --chown=user . .
21
+ # RUN mkdir -p ./.cache
22
+ # RUN chmod 777 ./.cache
23
 
24
  CMD ["uvicorn", "src.main_sentiment:app", "--host", "0.0.0.0", "--port", "7860"]