mirror of
https://github.com/Cernobor/oko-server.git
synced 2025-02-24 08:27:17 +00:00
Upgraded go & alpine, fix db checkpointing.
* Go version set to 1.19 in go.mod. * Alpine upgraded to 3.16 in Dockerfile. * DB restart checkpoint is forced manually after 15 mins of inactivity. * DB truncate checkpoint is forced manually at exit.
This commit is contained in:
+4
-3
@@ -1,14 +1,15 @@
|
||||
FROM alpine:3.15.0 AS build
|
||||
FROM alpine:3.16 AS build
|
||||
|
||||
ARG CAPROVER_GIT_COMMIT_SHA=""
|
||||
VOLUME ["/data"]
|
||||
COPY . /oko-server/git
|
||||
|
||||
RUN apk add --no-cache go && \
|
||||
RUN apk update && \
|
||||
apk add go && \
|
||||
cd /oko-server/git && \
|
||||
go build -ldflags "-X \"main.sha1ver=${CAPROVER_GIT_COMMIT_SHA:-$(cat .git/$(cat .git/HEAD | sed 's|ref: ||g'))}\" -X \"main.buildTime=$(date -Iseconds)\""
|
||||
|
||||
FROM alpine:3.15.0
|
||||
FROM alpine:3.16
|
||||
WORKDIR /oko-server
|
||||
VOLUME [ "/data" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user