Este site funciona melhor com JavaScript.
Página inicial
Explorar
Acessar
pollutri
/
res_levis_backend
Observar
1
Favorito
0
Fork
0
Código
Issues
1
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
chore: update gitignore, create Dockerfile
chore/proposed-structure
Blaz Smehov
1 mês atrás
pai
feeb5723d3
commit
450977178b
3 arquivos alterados
com
27 adições
e
3 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-2
.gitignore
+25
-0
build/package/Dockerfile
+1
-1
cmd/presenSe/presense.go
+ 1
- 2
.gitignore
Ver arquivo
@@ -17,8 +17,7 @@
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/
main.go
maincopy.go
copy_files/
# Dependency directories (remove the comment below to include it)
# vendor/
+ 25
- 0
build/package/Dockerfile
Ver arquivo
@@ -0,0 +1,25 @@
# syntax=docker/dockerfile:1
FROM golang:1.19
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /app/app ./cmd/app
# Second stage: use a minimal image
FROM alpine:latest
WORKDIR /
RUN apk add --no-cache ca-certificates
COPY --from=builder /app/app /app
EXPOSE 8080
ENTRYPOINT ["/app"]
+ 1
- 1
cmd/presenSe/presense.go
Ver arquivo
@@ -23,7 +23,7 @@ import (
func main() {
sigc := make(chan os.Signal, 1)
signal.Notify(sigc, os.Interrupt
, os.Kill
)
signal.Notify(sigc, os.Interrupt)
cfg := config.Load()
db, err := bolt.Open("presence.db", 0644, nil)
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar