Dockerfile example
See original GitHub issueDockerfile that works for me if anyone’s interested.
FROM nvidia/cuda:11.0.3-devel-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install python3 -y && \
apt-get install python3-pip -y && \
apt-get install git ffmpeg libsm6 libxext6 -y
RUN cd ./home && \
git clone https://github.com/Janspiry/Palette-Image-to-Image-Diffusion-Models
#I only clone this for the requirements.txt. I run palette from mounted drive /root/data
RUN pip3 install \
torch==1.7.0+cu110 \
torchvision==0.8.1+cu110 \
-f https://download.pytorch.org/whl/torch_stable.html
RUN pip3 install -r ./home/Palette-Image-to-Image-Diffusion-Models/requirements.txt
WORKDIR ./root/data
Run with something like
docker run --rm --gpus all -it -v <path_to_palette_repo>:/root/data -v palette
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Containerize an application - Docker Documentation
Select an instruction in the Dockerfile example to learn more about the instruction. Build the container image using the following commands:.
Read more >Dockerfile tutorial by example - basics and best practices [2018]
An in-depth tutorial on creating your own Docker images with Dockerfile. Detailed examples, videos and Dockerfile best practices.
Read more >Docker - File - Tutorialspoint
An example is again shown below. Docker File. If we use the Docker images command, we can see the existing images in our...
Read more >What Is a Dockerfile: Everything You Need to Know - Simplilearn
List of Docker Commands for Creating a Dockerfile with example · FROM - Creates a layer from the ubuntu:18.04 · PULL - Adds...
Read more >Docker — A Beginner's guide to Dockerfile with a sample project
Dockerfile example with ENTRYPOINT // build the image docker build -t dockerfile3 -f Dockerfile3 .// run the container
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I clone a copy to my local computer. So /root/data points to my local code path. That way I can edit the code on my local machine, and its available in the container via the mounted path.
Edit: I’m running docker with WSL as well
That’s good advice, but need some time. Considering that other users can work well, I think there is a bias in the operation.