Reputation: 10291
I need hello.rpm
when I build from Dockerfile, but this rpm file is not available online.
Right now I'm serving the file by firing up a temporary web server, but ideally I'd like to run a build command which makes this local file available inside the container.
Is this possible?
My build command:
docker build -t fredrik/helloworld:1.0 .
My Dockerfile:
FROM centos:6
RUN rpm -ivh hello.rpm
Upvotes: 35
Views: 38572
Reputation: 681
Otherwise if an internet connection is not a limiting factor while you're working just:
wget https://www.cloudnameXYZ.com/filename
Upvotes: 1