cleaned up example

This commit is contained in:
Alex Goodman 2018-10-21 12:11:13 -04:00
parent 291207ed6c
commit 3ea8c0ab4a
No known key found for this signature in database
GPG key ID: 05328C611D8A520E
3 changed files with 12 additions and 4 deletions

View file

@ -1,8 +1,8 @@
FROM alpine:latest
ADD ../README.md /somefile.txt
ADD README.md /somefile.txt
RUN mkdir /root/example
RUN cp /somefile.txt /root/example/somefile1.txt
RUN cp /somefile.txt /root/example/somefile2.txt
RUN cp /somefile.txt /root/example/somefile3.txt
RUN mv /root/example/somefile3.txt /root/saved.txt
RUN rm -rf /root/example/
RUN rm -rf /root/example/

9
.dockerignore Normal file
View file

@ -0,0 +1,9 @@
/.git
/.scripts
/dist
/doc
/ui
/utils
/image
/cmd
/build

View file

@ -3,8 +3,7 @@ BIN = dive
all: clean build
run: build
docker image ls | grep "dive-test" >/dev/null || docker build -t dive-test:latest -f data/Dockerfile .
./build/$(BIN) dive-test
./build/$(BIN) build -t dive-test:latest -f .data/Dockerfile .
build:
go build -o build/$(BIN)