add some build scripts
online-builder / Explore-Gitea-Actions (push) Waiting to run Details
Goreleaser / goreleaser (push) Waiting to run Details

This commit is contained in:
demoe 2024-01-22 20:13:53 +08:00
parent d5d56a0a0d
commit 005e03aef9
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,8 @@ FROM golang:1.21-alpine3.18 AS builder
COPY . /src
WORKDIR /src
RUN apk add make \
RUN sed -i 's#https://dl-cdn.alpinelinux.org/alpine/v3.18#https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.18#g' /etc/apk/repositories \
&& apk add make \
&& export GOPROXY=https://goproxy.cn,direct \
&& export GO111MODULE=on \
&& make build \

3
start.sh Executable file
View File

@ -0,0 +1,3 @@
# !/bin/zsh
docker build -t online-dev:latest .
dokcer-compose up -d