diff options
-rw-r--r-- | .data/Dockerfile (renamed from data/Dockerfile) | 4 | ||||
-rw-r--r-- | .dockerignore | 9 | ||||
-rw-r--r-- | Makefile | 3 |
3 files changed, 12 insertions, 4 deletions
diff --git a/data/Dockerfile b/.data/Dockerfile index c3b6e8a..050a7ee 100644 --- a/data/Dockerfile +++ b/.data/Dockerfile @@ -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/
\ No newline at end of file +RUN rm -rf /root/example/ diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8893c78 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +/.git +/.scripts +/dist +/doc +/ui +/utils +/image +/cmd +/build @@ -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) |