ToolGen-Agent / Dockerfile
reasonwang's picture
Debug
3a4b351
raw
history blame contribute delete
798 Bytes
FROM python:3.10-slim
RUN apt-get update && \
apt-get install -y \
bash \
git git-lfs \
wget curl procps \
htop vim nano unzip tmux
WORKDIR /app
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# All users can use /home/user as their home directory
ENV HOME=/home/user
RUN mkdir $HOME/.cache $HOME/.config \
&& chmod -R 777 $HOME
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
COPY --chown=user . $HOME/app
WORKDIR $HOME/app
# COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN chmod +x start_service.sh
ENV SHELL=/usr/bin/bash
# COPY --chown=1000 ./ /app
# CMD ["./start_service.sh"]
CMD ["python", "app.py"]