Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
Make downloading deps a separate step and bump golang version
  • Loading branch information
awensaunders committed Sep 8, 2023
1 parent f5e1d4f commit c86be88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM golang:1.16-buster AS builder
FROM golang:1.18-buster AS builder
ENV CGO_ENABLED=0
ARG COMPILE_FLAGS
WORKDIR /root/mailroom
COPY go.mod /root/mailroom/go.mod
COPY go.sum /root/mailroom/go.sum
RUN go mod download
COPY . /root/mailroom
RUN apt-get -yq update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
Expand Down

0 comments on commit c86be88

Please sign in to comment.