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 # syntax=docker/dockerfile:1
FROM golang:alpine AS deps
FROM alpine:latest AS deps RUN apk add --no-cache mariadb-dev sqlite-dev build-base gcc
RUN apk add --no-cache mariadb-dev sqlite-dev build-base go
FROM deps AS builder FROM deps AS builder
WORKDIR /app WORKDIR /app

View File

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

2
go.mod
View File

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