Add task for building image

This commit is contained in:
9seconds
2026-02-11 09:47:11 +01:00
parent b72af2b953
commit b1728c3474
2 changed files with 12 additions and 4 deletions
+7 -4
View File
@@ -1,21 +1,24 @@
###############################################################################
# BUILD STAGE
FROM golang:1.19-alpine AS build
FROM alpine:3 AS build
ENV CGO_ENABLED=0
ENV GOOS=linux
RUN set -x \
&& apk --no-cache --update add \
bash \
ca-certificates \
curl \
git \
make
mise
COPY . /app
WORKDIR /app
RUN set -x \
&& make -j 4 static
&& mise trust \
&& mise tasks run static
###############################################################################