How to copy file from host to container using Dockerfile

前端 未结 7 1204
Happy的楠姐
Happy的楠姐 2020-12-13 03:11

I have written a Dockerfile which looks like this

FROM ubuntu:12.04

RUN apt-get update
RUN apt-get install -y wget

Now I\'m having a file

7条回答
  •  甜味超标
    2020-12-13 03:47

    If you want to copy the current dir's contents, you can run:

    docker build  -t  -f- ./ < Dockerfile
    

提交回复
热议问题