aseli commited on
Commit
2f1278a
·
verified ·
1 Parent(s): 6ed4d99

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 ls
30
- # Copy file go.mod dan go.sum untuk mengunduh dependensi
31
- COPY --chown=user go.mod $HOME/app/
 
 
 
32
 
33
- # Unduh dependensi Go
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