WIP: create experiment alpine image

This commit is contained in:
2025-07-18 22:15:55 +10:00
parent 438e48c6fe
commit 3e0546e259
7 changed files with 7 additions and 40 deletions

View File

@@ -1,15 +1,17 @@
FROM golang:1.24-alpine3.21 AS builder
FROM golang:1.24-alpine3.22 AS builder
ADD . /root/wingmate
WORKDIR /root/wingmate/
ARG TEST_BUILD
RUN apk update && apk add git make build-base && \
CGO_ENABLED=1 make all && \
make DESTDIR=/usr/local/bin/wingmate install
#RUN apk update && apk add git make build-base && \
# CGO_ENABLED=1 make all && \
# make DESTDIR=/usr/local/bin/wingmate install
RUN apk update && apk add git make && \
make all && make DESTDIR=/usr/local/bin/wingmate install
FROM alpine:3.21
FROM alpine:3.22
RUN apk add tzdata && ln -s /usr/share/zoneinfo/Australia/Sydney /etc/localtime && \
adduser -h /home/user1 -D -s /bin/sh user1 && \