diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 33696ee..0000000 --- a/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM golang:alpine as builder - -RUN mkdir -p /go/src/app -WORKDIR /go/src/app - -ADD . /go/src/app - -#RUN go get -d -v - -#Run go build -o bins/genityapp - -CMD ["./bins/genityapp"] \ No newline at end of file diff --git a/build/Dockerfile b/build/Dockerfile index eab6d63..4f52e3d 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -5,4 +5,5 @@ WORKDIR /go/src/app ADD . /go/src/app -RUN go get -d -v \ No newline at end of file + +CMD ["./bins/genityapp"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 208fade..d7066e3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,9 @@ services: networks: - genity_network web: - build: "" + build: + context: . + dockerfile: build/Dockerfile env_file: ./configs/web.env ports: - "5000:5000"