mirror of
https://github.com/cuteLittleDevil/m7s-jt1078.git
synced 2025-09-26 20:41:32 +08:00
github: action中docker打包默认使用sqlite数据库 使用go1.25
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
FROM golang:1.23-alpine AS builder
|
FROM golang:1.25-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
# 不用数据库也可以跑 只是默认页面会报错 https://github.com/cuteLittleDevil/m7s-jt1078/issues/4
|
# 不用数据库也可以跑 只是默认页面会报错 https://github.com/cuteLittleDevil/m7s-jt1078/issues/4
|
||||||
RUN cd ./example/jt1078 && go build -tags sqlite -o jt1078
|
RUN cd ./example/jt1078 && go build -tags sqlite -o jt1078
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -14,5 +14,6 @@ COPY --from=builder /app/example/testdata/data.txt .
|
|||||||
COPY --from=builder /app/example/testdata/audio_data.txt .
|
COPY --from=builder /app/example/testdata/audio_data.txt .
|
||||||
COPY --from=builder /app/example/jt1078/jt1078 .
|
COPY --from=builder /app/example/jt1078/jt1078 .
|
||||||
COPY --from=builder /app/example/jt1078/docker_config.yaml ./config.yaml
|
COPY --from=builder /app/example/jt1078/docker_config.yaml ./config.yaml
|
||||||
EXPOSE 12079 12081 12051 12052
|
# 12079是http页面 12051是jt1078的实时音视频 12052是jt1078的历史音视频
|
||||||
|
EXPOSE 12079 12051 12052
|
||||||
CMD ["./jt1078"]
|
CMD ["./jt1078"]
|
@@ -1,6 +1,6 @@
|
|||||||
module jt1078
|
module jt1078
|
||||||
|
|
||||||
go 1.24.0
|
go 1.25.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/cuteLittleDevil/m7s-jt1078/v5 v5.9.0
|
github.com/cuteLittleDevil/m7s-jt1078/v5 v5.9.0
|
||||||
|
Reference in New Issue
Block a user