From 0f5aa5d1ce088df28e6a3fa86cc1b607a4709e39 Mon Sep 17 00:00:00 2001 From: Charaf ZELLOU Date: Tue, 9 Jul 2024 17:49:50 +0200 Subject: [PATCH] Updated Dockerfile to remove AIR instructions --- Dockerfile.api | 3 +-- Dockerfile.indexer | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile.api b/Dockerfile.api index 0a140d1..31c3e12 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -2,9 +2,8 @@ FROM --platform=linux/amd64 golang:1.20.5 WORKDIR /app/api -RUN go install github.com/cosmtrek/air@latest - COPY app/api/go.mod app/api/go.sum ./ + RUN go mod download COPY ./app/api/ ./ diff --git a/Dockerfile.indexer b/Dockerfile.indexer index 865cad5..8b31ae3 100644 --- a/Dockerfile.indexer +++ b/Dockerfile.indexer @@ -2,9 +2,8 @@ FROM --platform=linux/amd64 golang:1.20.5 WORKDIR /app/indexer -RUN go install github.com/cosmtrek/air@latest - COPY app/indexer/go.mod app/indexer/go.sum ./ + RUN go mod download COPY ./app/indexer/ ./