cyborgai-api-test1 / Dockerfile
cyborg-ai-git
init
9c8f1da
raw
history blame contribute delete
797 Bytes
#=========================================================================
# CyborgAI CC BY-NC-ND 4.0
# Creative Commons Attribution-NonCommercial-NoDerivatives International
#
# https://github.com/cyborg-ai-git
#=========================================================================
ARG PYTHON_VERSION=3.10-slim-buster
FROM python:${PYTHON_VERSION}
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV ISDOCKER 1
RUN set -ex && \
pip install --upgrade pip && \
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user peer_config.yaml /app
COPY --chown=user main.py /app
EXPOSE 7860
CMD ["python", "main.py"]