updated Dockerfile to match golang version in the go.mod file.

This commit is contained in:
Suyono 2025-05-25 13:29:03 +10:00
parent 61d735bbad
commit 2474d3cddf
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM golang:1.22-alpine3.20 AS builder FROM golang:1.24-alpine3.21 AS builder
ADD . /root/wingmate ADD . /root/wingmate
WORKDIR /root/wingmate/ WORKDIR /root/wingmate/
@ -9,7 +9,7 @@ RUN apk update && apk add git make build-base && \
FROM alpine:3.20 FROM alpine:3.21
RUN apk add tzdata && ln -s /usr/share/zoneinfo/Australia/Sydney /etc/localtime && \ RUN apk add tzdata && ln -s /usr/share/zoneinfo/Australia/Sydney /etc/localtime && \
adduser -h /home/user1 -D -s /bin/sh user1 && \ adduser -h /home/user1 -D -s /bin/sh user1 && \

View File

@ -1,4 +1,4 @@
FROM golang:1.22-bookworm AS builder FROM golang:1.24-bookworm AS builder
ADD . /root/wingmate ADD . /root/wingmate
WORKDIR /root/wingmate/ WORKDIR /root/wingmate/