이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
로그인
pollutri
/
res_levis_backend
보기
1
좋아요
0
포크
0
코드
이슈
1
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
chore: update gitignore, create Dockerfile
chore/proposed-structure
Blaz Smehov
1 개월 전
부모
feeb5723d3
커밋
450977178b
3개의 변경된 파일
과
27개의 추가작업
그리고
3개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
.gitignore
+25
-0
build/package/Dockerfile
+1
-1
cmd/presenSe/presense.go
+ 1
- 2
.gitignore
파일 보기
@@ -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
파일 보기
@@ -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
파일 보기
@@ -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)
쓰기
미리보기
불러오는 중...
취소
저장