question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dockerfile example

See original GitHub issue

Dockerfile 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
truftycommented, Jun 10, 2022

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

0reactions
Janspirycommented, Jun 21, 2022

That’s good advice, but need some time. Considering that other users can work well, I think there is a bias in the operation.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found