Compare commits

..

No commits in common. "f8b42f35f68f0b20a3e92bd234a1958317720a28" and "7b4eb8d5d256f9de18821c364d91465ee281f94e" have entirely different histories.

4 changed files with 15 additions and 80 deletions

View File

@ -1,41 +0,0 @@
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*
# Project-specific
oko-server
*.sqlite*
.vscode
.git

View File

@ -1,20 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: deploy
image: caprover/cli-caprover:2.2.3
commands:
- caprover deploy
environment:
CAPROVER_URL:
from_secret: caprover_url
CAPROVER_APP:
from_secret: caprover_app
CAPROVER_APP_TOKEN:
from_secret: app_token
CAPROVER_BRANCH: main
when:
branch:
- main

View File

@ -1,19 +1,19 @@
FROM alpine:3.15.0 AS build
VOLUME ["/data"]
COPY . /oko-server/git
RUN apk add --no-cache go && \
cd /oko-server/git && \
go build
FROM alpine:3.15.0
WORKDIR /oko-server
VOLUME [ "/data" ]
RUN echo -e '#!/bin/sh\n/oko-server/oko-server "$@"' > /oko-server/entrypoint.sh && \
RUN apk add --no-cache git go && \
mkdir /oko-server && \
cd /oko-server && \
git clone https://github.com/Cernobor/oko-server.git /oko-server/git && \
cd /oko-server/git && \
go build && \
cp /oko-server/git/oko-server /oko-server/ && \
cd /oko-server && \
rm -rf /oko-server/git && \
mkdir /data && \
apk del git go && \
rm -rf /root/go && \
echo -e '#!/bin/sh\n/oko-server/oko-server "$@"' > /oko-server/entrypoint.sh && \
chmod +x /oko-server/entrypoint.sh
COPY --from=build /oko-server/git/oko-server/ /oko-server/
VOLUME ["/data"]
ENTRYPOINT ["/oko-server/entrypoint.sh"]

View File

@ -1,4 +0,0 @@
{
"schemaVersion": 2,
"dockerfilePath": "./Dockerfile"
}