add docker build cache for modules

main
Nikita Tokarchuk 5 years ago
parent 5c9d4cd2d9
commit 9994992c10
  1. 4
      task1-backend/Dockerfile
  2. 4
      task2-backend/Dockerfile
  3. 4
      task3-backend/Dockerfile

@ -8,6 +8,10 @@ WORKDIR /app
RUN apk add --no-cache go git curl gcc g++ make
COPY go.sum .
COPY go.mod .
RUN go mod download
COPY . .
RUN go build -o task1 github.com/mainnika/a-quest/task1-backend

@ -8,6 +8,10 @@ WORKDIR /app
RUN apk add --no-cache go git curl gcc g++ make
COPY go.sum .
COPY go.mod .
RUN go mod download
COPY . .
RUN go build -o task2 github.com/mainnika/a-quest/task2-backend

@ -8,6 +8,10 @@ WORKDIR /app
RUN apk add --no-cache go git curl gcc g++ make
COPY go.sum .
COPY go.mod .
RUN go mod download
COPY . .
RUN go build -o task3 github.com/mainnika/a-quest/task3-backend

Loading…
Cancel
Save