Merge branch 'main' of http://120.77.213.139:3389/skong/online_exam into main
online-builder / Explore-Gitea-Actions (push) Has been cancelled Details
Goreleaser / goreleaser (push) Has been cancelled Details

This commit is contained in:
skong 2024-01-23 01:44:36 +08:00
commit 168946b962
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