Skip to content

Commit

Permalink
Remove Dockerfile caches
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Oct 17, 2023
1 parent 44c1835 commit 87a0a71
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ COPY . .
# Ensure ca-certificates are up to date
RUN update-ca-certificates

ENV GOCACHE=/go/cache

# Download go modules
RUN --mount=type=cache,target=/go go mod download
RUN --mount=type=cache,target=/go go mod verify
RUN go mod download
RUN go mod verify

# Build the binary
RUN --mount=type=cache,target=/go go build -o /app/iota-core -tags="$BUILD_TAGS" -ldflags='-w -s'
RUN go build -o /app/iota-core -tags="$BUILD_TAGS" -ldflags='-w -s'

# Copy the assets
RUN cp ./config_defaults.json /app/config.json
Expand Down

0 comments on commit 87a0a71

Please sign in to comment.