| |
|
|
| FROM seipharos/pharos |
|
|
| WORKDIR /code |
|
|
| COPY ./requirements.txt /code/requirements.txt |
|
|
| RUN apt-get -y update && apt-get -y install python3-pip |
|
|
|
|
| |
| RUN useradd -m -u 1000 user |
|
|
| |
| USER user |
|
|
| RUN pip3 install --no-cache-dir --upgrade setuptools |
|
|
| RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt |
|
|
| |
| ENV HOME=/home/user \ |
| PATH=/home/user/.local/bin:$PATH |
|
|
| |
| WORKDIR $HOME/app |
|
|
| |
| COPY --chown=user . $HOME/app |
|
|
| RUN wget https://huggingface.co/datasets/ejschwartz/oo-method-test/raw/main/scripts/gen-training.py -O dis.py |
|
|
| CMD ["python3", "app.py"] |
|
|