Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ ENV PATH="/workspace/miniconda3/bin:${PATH}"
# initialize conda
RUN conda init bash

# accept conda tos
ARG ACCEPT_CONDA_TOS
RUN if [ "${ACCEPT_CONDA_TOS}" != "y" ] && [ "${ACCEPT_CONDA_TOS}" != "Y" ]; then echo "ERROR: You must accept the Conda TOS by setting ACCEPT_CONDA_TOS=y" && exit 1; fi
RUN conda tos accept

# create and activate conda environment
RUN conda create -n instantmesh python=3.10 && echo "source activate instantmesh" > ~/.bashrc
ENV PATH /workspace/miniconda3/envs/instantmesh/bin:$PATH
Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ make sure you are under directory `yourworkspace/instantmesh/`
Build docker image:

```bash
docker build -t instantmesh -f docker/Dockerfile .
docker build -t instantmesh -f docker/Dockerfile --build-arg ACCEPT_CONDA_TOS=y .
```

Run docker image with a local model cache (so it is fast when container is started next time):
Expand Down