ToolGen-Agent / Dockerfile
haonan-li's picture
Add docker
f661a7e
raw
history blame
714 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
# COPY --chown=1000 ./ /app
CMD ["python", "app.py"]