feature-flag-cleanup / Dockerfile
Falgunisharma's picture
Initial commit: Feature Flag Cleanup OpenEnv environment
93943e4
raw
history blame contribute delete
404 Bytes
FROM python:3.11-slim
RUN useradd -m -u 1000 user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR /home/user/app
COPY --chown=user:user requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY --chown=user:user . .
USER user
EXPOSE 7860
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]