Update Dockerfile
Browse files- 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
|
|
|
|
| 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 |
|