From 63d7930cb1a8f2bd4996851e063d733ab3b4f98e Mon Sep 17 00:00:00 2001 From: degenerat3 Date: Thu, 18 Feb 2021 08:28:20 -0500 Subject: [PATCH] fix workdir and mod tidy --- core/Dockerfile | 3 ++- listeners/cera/Dockerfile | 3 ++- listeners/daddy_tops/Dockerfile | 3 ++- listeners/little_foot/Dockerfile | 3 ++- listeners/nest/Dockerfile | 3 ++- listeners/petrie/Dockerfile | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/core/Dockerfile b/core/Dockerfile index 8620ce2..640e963 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -3,7 +3,8 @@ FROM golang #Install git RUN apt-get update; apt-get install -y git RUN mkdir -p /go/src/github.com/degenerat3/ -RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; cd meteor; +RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; +WORKDIR /go/src/github.com/degenerat3/meteor RUN go mod tidy RUN cd /go/src/github.com/degenerat3/meteor/core; CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o core . diff --git a/listeners/cera/Dockerfile b/listeners/cera/Dockerfile index ad81147..8d4def7 100644 --- a/listeners/cera/Dockerfile +++ b/listeners/cera/Dockerfile @@ -3,7 +3,8 @@ FROM golang #Install git RUN apt-get update; apt-get install -y git RUN mkdir -p /go/src/github.com/degenerat3/ -RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; cd meteor; +RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; +WORKDIR /go/src/github.com/degenerat3/meteor RUN go mod tidy RUN cd /go/src/github.com/degenerat3/meteor/listeners/cera; CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o cera . #COPY /go/src/github.com/degenerat3/meteor/listeners/cera/cera /app/cera_listener \ No newline at end of file diff --git a/listeners/daddy_tops/Dockerfile b/listeners/daddy_tops/Dockerfile index eec5076..185c116 100644 --- a/listeners/daddy_tops/Dockerfile +++ b/listeners/daddy_tops/Dockerfile @@ -3,7 +3,8 @@ FROM golang #Install git RUN apt-get update; apt-get install -y git RUN mkdir -p /go/src/github.com/degenerat3/ -RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; cd meteor; +RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; +WORKDIR /go/src/github.com/degenerat3/meteor RUN go mod tidy RUN cd /go/src/github.com/degenerat3/meteor/listeners/daddy_tops; CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o daddy_tops . diff --git a/listeners/little_foot/Dockerfile b/listeners/little_foot/Dockerfile index 5f2555e..8e431cc 100644 --- a/listeners/little_foot/Dockerfile +++ b/listeners/little_foot/Dockerfile @@ -3,7 +3,8 @@ FROM golang #Install git RUN apt-get update; apt-get install -y git RUN mkdir -p /go/src/github.com/degenerat3/ -RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; cd meteor; +RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; +WORKDIR /go/src/github.com/degenerat3/meteor RUN go mod tidy RUN cd /go/src/github.com/degenerat3/meteor/listeners/little_foot; CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o little_foot . diff --git a/listeners/nest/Dockerfile b/listeners/nest/Dockerfile index b2dad16..2f096fb 100644 --- a/listeners/nest/Dockerfile +++ b/listeners/nest/Dockerfile @@ -4,7 +4,8 @@ FROM golang RUN apt-get update; apt-get install -y git RUN mkdir -p /go/src/github.com/degenerat3/ RUN mkdir -p /hostedfiles/dt/ -RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; cd meteor; +RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; +WORKDIR /go/src/github.com/degenerat3/meteor RUN go mod tidy RUN go install github.com/degenerat3/meteor/listeners/nest diff --git a/listeners/petrie/Dockerfile b/listeners/petrie/Dockerfile index e8c8e38..b134b64 100644 --- a/listeners/petrie/Dockerfile +++ b/listeners/petrie/Dockerfile @@ -3,7 +3,8 @@ FROM golang #Install git RUN apt-get update; apt-get install -y git RUN mkdir -p /go/src/github.com/degenerat3/ -RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; cd meteor; +RUN cd /go/src/github.com/degenerat3; git clone https://github.com/degenerat3/meteor; +WORKDIR /go/src/github.com/degenerat3/meteor RUN go mod tidy RUN cd /go/src/github.com/degenerat3/meteor/listeners/petrie; CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o petrie .