spaces-ci's picture
update: repo/variables-and-secrets/commit-1
f132f16 verified
raw
history blame contribute delete
484 Bytes
FROM python:3.9
RUN pip install -U pip
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
ARG AUTHOR_NAME
ARG REPO_NAME
RUN echo $AUTHOR_NAME > var1.build
RUN echo $REPO_NAME > var2.build
RUN --mount=type=secret,id=SECRET,mode=0444,required=true echo $(cat /run/secrets/SECRET) > secret.build
RUN --mount=type=secret,id=SECRET2,mode=0444,required=true echo $(cat /run/secrets/SECRET2) > secret2.build
ENTRYPOINT ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]