dialogflowAPI / Dockerfile
OnlyBiggg
fix
69502f1
raw
history blame
494 Bytes
FROM python:3.10.4
RUN adduser --disabled-password --gecos '' appuser
ENV API_BASE_URL=https://api-dev.futabus.vn
ENV API_ACCESS_TOKEN=https://api-dev.futabus.vn/identity/api/token/anonymous-token
ENV ENVIRONMENT=dev
WORKDIR /app
COPY . .
RUN mkdir -p /app/log && chown -R appuser:appuser /app/log && chmod -R 755 /app/log /app/static/upload
RUN pip install --no-cache-dir --upgrade -r requirements.txt
USER appuser
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]