Skip to content

Commit

Permalink
rearrenge Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed May 1, 2022
1 parent de2d30b commit cc8d1f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# syntax=docker/dockerfile:1
FROM docker.io/library/golang:1.18-alpine3.15 AS builder

RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++

WORKDIR /app

# Get dependancies - will also be cached if we won't change go.mod/go.sum
# Get dependencies - will also be cached if we won't change go.mod/go.sum
COPY go.mod .
COPY go.sum .
RUN go mod download

RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++

ADD . .

Expand Down

0 comments on commit cc8d1f8

Please sign in to comment.