blogger_api / Dockerfile
coder160's picture
update test secrets
4940293
raw
history blame contribute delete
350 Bytes
FROM python:3.9
WORKDIR /server
COPY ./requirements.txt /server/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /server/requirements.txt
RUN --mount=type=secret,id=XPKAK,mode=0444
RUN --mount=type=secret,id=XPKBP,mode=0444
COPY ./api_files /server/api_files
CMD ["uvicorn", "api_files.main:api_fn", "--host", "0.0.0.0", "--port", "7860"]