docker yapı
docker build -t [tag] .
docker görüntüsü nasıl oluşturulur
docker build <Dockerfile path> -t image-name
dockerfile örneği
FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
dockerfile gelen docker yapı
$ docker build - < Dockerfile
docker build, yapı çıktısını bastırır
docker image build -t [name] . -q
docker dosyası oluşturmak için komut
// Make sure you are in the same dictionary where you have saved your Dockerfile
command is:
docker build .