mirror of
https://github.com/cheat/cheat.git
synced 2026-03-07 11:13:33 +01:00
- Bump Go from 1.19 to 1.26 and update all dependencies - Rewrite CI workflow with matrix strategy (Linux, macOS, Windows) - Update GitHub Actions to current versions (checkout@v4, setup-go@v5) - Update CodeQL actions from v1 to v3 - Fix cross-platform bug in mock/path.go (path.Join -> filepath.Join) - Clean up dependabot config (weekly schedule, remove stale ignore) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
563 B
Docker
23 lines
563 B
Docker
FROM golang:1.24@sha256:14fd8a55e59a560704e5fc44970b301d00d344e45d6b914dda228e09f359a088
|
|
|
|
ENV GOOS=linux
|
|
ENV GOARCH=arm
|
|
ENV CGO_ENABLED=1
|
|
ENV CC=arm-linux-gnueabihf-gcc
|
|
ENV PATH="/go/bin/${GOOS}_${GOARCH}:${PATH}"
|
|
ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
|
|
|
|
RUN dpkg --add-architecture armhf \
|
|
&& apt update \
|
|
&& apt install -y --no-install-recommends \
|
|
gcc-arm-linux-gnueabihf \
|
|
libc6-dev-armhf-cross \
|
|
pkg-config \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /src/workdir
|
|
|
|
WORKDIR /src/workdir
|
|
|
|
RUN go build ./...
|