feat: build stuff

This commit is contained in:
Teajey 2024-05-22 20:23:45 +12:00
parent 245bd6ef9c
commit 199c75be27
Signed by: Teajey
GPG Key ID: 970E790FE834A713
2 changed files with 23 additions and 1 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM ubuntu:18.04
RUN apt update
RUN apt update
RUN apt install -y --no-install-recommends \
build-essential \
libc6-dev \
wget \
ca-certificates \
gcc
RUN apt clean
RUN rm -rf /var/lib/apt/lists/*
WORKDIR /usr/local
RUN wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
RUN tar -xzf go1.22.3.linux-amd64.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
CMD ["tail", "-f", "/dev/null"]

View File

@ -1 +1 @@
docker run --rm -v "$PWD":/usr/src/lishwist -w /usr/src/lishwist golang:1.22 env GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build .
docker run --rm -v "$PWD":/usr/src/lishwist -w /usr/src/lishwist ubuntu-18.04-golang-1.22.3 env GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build .