File size: 797 Bytes
9099f0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9c8f1da
9099f0d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#=========================================================================
# 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"]