dockerfile for go 1.22

This commit is contained in:
JongYeob Sheen 2024-02-23 01:01:21 +09:00
parent 447bd14c19
commit 96e1294d5b
3 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,6 @@
# syntax=docker/dockerfile:1
FROM alpine:latest AS deps
RUN apk add --no-cache mariadb-dev sqlite-dev build-base go
FROM golang:alpine AS deps
RUN apk add --no-cache mariadb-dev sqlite-dev build-base gcc
FROM deps AS builder
WORKDIR /app

View File

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
FROM alpine:latest AS deps
RUN apk add --no-cache mariadb-dev sqlite-dev build-base go
FROM golang:alpine AS deps
RUN apk add --no-cache mariadb-dev sqlite-dev build-base
FROM deps AS builder
WORKDIR /app

2
go.mod
View File

@ -1,6 +1,6 @@
module learnsteam/cslms-api
go 1.21
go 1.22
require (
github.com/apex/gateway v1.1.2