From d574c0faddb99ecdc6f3e861f20852d6def2e13d Mon Sep 17 00:00:00 2001 From: Brett Bond Date: Mon, 27 May 2024 10:13:25 -0400 Subject: [PATCH] Update golang to 1.20 in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 315a9ad..0bb5e39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -# Alpine docker image to run the go webserver on port 8080 -FROM golang:1.16-alpine +# Use the official Golang image with Go 1.20 as a base image +FROM golang:1.20-alpine # Set the Current Working Directory inside the container WORKDIR /app -# Copy go mod and sum files +# Copy go.mod and go.sum files COPY go.mod go.sum ./ # Download all dependencies. Dependencies will be cached if the go.mod and go.sum files are not changed