forked from snap-stanford/MLAgentBench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 759 Bytes
/
Dockerfile
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
FROM anibali/pytorch:2.0.0-cuda11.8-ubuntu22.04
# Set up time zone.
ENV TZ=UTC
RUN sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
WORKDIR /app
USER root
RUN apt-get update && apt-get install -y --no-install-recommends gcc && rm -r /var/lib/apt/lists/*
USER user
# Add the current directory contents into the container at /app
COPY install.sh .
COPY Auto-GPT/requirements.txt ./Auto-GPT/
COPY requirements.txt .
# Install libraries
RUN conda create -n autogpt python=3.10
# Make RUN commands use the new environment:
RUN conda init bash
SHELL ["conda", "run", "-n", "autogpt", "/bin/bash", "-c"]
RUN bash install.sh
RUN echo "conda init bash" > ~/.bashrc
RUN echo "source activate autogpt" > ~/.bashrc
ENV PATH /opt/conda/envs/envname/bin:$PATH