Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -26,12 +26,14 @@ RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \
|
|
| 26 |
--mount=type=secret,id=REPO_URL,mode=0444,required=true \
|
| 27 |
git clone https://$(cat /run/secrets/GH_TOKEN)@$(cat /run/secrets/REPO_URL) .
|
| 28 |
|
| 29 |
-
RUN
|
| 30 |
-
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
RUN go mod download
|
| 35 |
|
| 36 |
# Copy seluruh kode aplikasi
|
| 37 |
COPY --chown=user . $HOME/app
|
|
|
|
| 26 |
--mount=type=secret,id=REPO_URL,mode=0444,required=true \
|
| 27 |
git clone https://$(cat /run/secrets/GH_TOKEN)@$(cat /run/secrets/REPO_URL) .
|
| 28 |
|
| 29 |
+
RUN go mod init github.com/what-zit-tooyaa/moonton \
|
| 30 |
+
&& go get github.com/gin-gonic/gin \
|
| 31 |
+
&& go get github.com/google/go-github/v50/githubgo \
|
| 32 |
+
&& go get golang.org/x/oauth2go \
|
| 33 |
+
&& go get github.com/parnurzeal/gorequest \
|
| 34 |
+
&& go get golang.org/x/net/proxy
|
| 35 |
|
| 36 |
+
# Copy file go.mod dan go.sum untuk mengunduh dependensi
|
|
|
|
| 37 |
|
| 38 |
# Copy seluruh kode aplikasi
|
| 39 |
COPY --chown=user . $HOME/app
|