Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -6,8 +6,8 @@ ENV GOTOOLCHAIN=auto
|
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
RUN
|
| 10 |
-
|
| 11 |
RUN go mod tidy
|
| 12 |
RUN go build -o solver ./main.go
|
| 13 |
|
|
|
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
+
RUN --mount=type=secret,id=GH_REPO,required=true \
|
| 10 |
+
git clone $(cat /run/secrets/GH_REPO) .
|
| 11 |
RUN go mod tidy
|
| 12 |
RUN go build -o solver ./main.go
|
| 13 |
|