Search / Dockerfile
magicudapps's picture
feat: add Dockerfile
587bde8
raw
history blame
536 Bytes
FROM python:3.11.9
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
RUN --mount=type=secret,id=GITLAB_CREDENTIALS,mode=0444,required=true \
git clone "https://$(cat /run/secrets/GITLAB_CREDENTIALS)@gitlab.com/bookingcare/search.git" -b dev .
RUN python -m pip install --upgrade pip
RUN pip install --user pipenv
RUN echo 'export PATH="/home/user/.local/bin:$PATH"' >> $HOME/.bashrc
RUN . $HOME/.bashrc
RUN pipenv install
EXPOSE 7860
CMD ["sh", "bin/hf-api-start.sh"]