dockerfile for go 1.22
This commit is contained in:
parent
447bd14c19
commit
96e1294d5b
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user