aripbae commited on
Commit
98373fe
·
verified ·
1 Parent(s): 4ad2e21

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,7 +1,8 @@
1
  FROM golang:alpine AS builder
2
  WORKDIR /app
3
  RUN apk add --no-cache git
4
- RUN git clone https://github.com/Rippanteq7/telerealm .
 
5
  RUN go mod download
6
  RUN CGO_ENABLED=0 GOOS=linux go build -o server main.go
7
 
 
1
  FROM golang:alpine AS builder
2
  WORKDIR /app
3
  RUN apk add --no-cache git
4
+ RUN --mount=type=secret,id=GITHUB_REPO,required=true git clone $(cat /run/secrets/GITHUB_REPO) .
5
+ # RUN git clone https://github.com/Rippanteq7/telerealm .
6
  RUN go mod download
7
  RUN CGO_ENABLED=0 GOOS=linux go build -o server main.go
8