From f82b3ef06fea7838a23230d475b3ff6f25464408 Mon Sep 17 00:00:00 2001 From: Ramon Saccilotto Date: Fri, 18 Mar 2022 16:27:37 +0100 Subject: [PATCH] Update hot reload container to go version 1.18.0 --- Dockerfile | 4 ++-- build.sh | 2 +- test/docker-compose.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a781db9..45544ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # --- BUILD IMAGE --- # USE GOLANG CONTAINER TO BUILD THE APPLICATION -FROM golang:1.17.7 as build +FROM golang:1.18.0 as build WORKDIR /src @@ -20,7 +20,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o ./ho # --- RUNTIME IMAGE --- # START FROM GO ALPINE -FROM golang:1.17.7-alpine3.15 +FROM golang:1.18.0-alpine3.15 LABEL copyright="Departement Klinische Forschung, Basel, Switzerland. 2022" diff --git a/build.sh b/build.sh index d972b27..943b76c 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ # !/bin/sh # build the hot reload utility and a respective docker container -docker build -t dkfbasel/hot-reload-go:1.17.7 -f ./Dockerfile ./cmd/hot-reload \ No newline at end of file +docker build -t dkfbasel/hot-reload-go:1.18.0 -f ./Dockerfile ./cmd/hot-reload \ No newline at end of file diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 0c2515a..5ef79da 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -2,8 +2,8 @@ version: "3.7" services: app: - container_name: hot-reload-go.1.17.7 - image: dkfbasel/hot-reload-go:1.17.7 + container_name: hot-reload-go.1.18.0 + image: dkfbasel/hot-reload-go:1.18.0 volumes: - ./src:/app environment: