SatCat commited on
Commit
7a1cb01
·
verified ·
1 Parent(s): 71dc178

remove env var mount docker-code

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -3,13 +3,12 @@ FROM python:3.9
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
-
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  COPY ./main.py /code/app/main.py
10
 
11
  # Secret EXAMPLE to py
12
- RUN --mount=type=secret,id=EXAMPLE,mode=0444,required=true export EXAMPLE=$(cat /run/secrets/EXAMPLE)
13
- ENV EXAMPLE=$EXAMPLE
14
 
15
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
 
6
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
7
 
8
  COPY ./main.py /code/app/main.py
9
 
10
  # Secret EXAMPLE to py
11
+ #RUN --mount=type=secret,id=EXAMPLE,mode=0444,required=true export EXAMPLE=$(cat /run/secrets/EXAMPLE)
12
+ #ENV EXAMPLE=$EXAMPLE
13
 
14
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]