Skip to content

Commit

Permalink
Changed golang:1.14-buster to golang:1.16-buster
Browse files Browse the repository at this point in the history
Fixes the below error:
```#0 6.877 pkg/mod/github.com/chromedp/[email protected]/js.go:4:2: package embed is not in GOROOT (/usr/local/go/src/embed)
------
Dockerfile:2
--------------------
   1 |     FROM golang:1.14-buster as builder
   2 | >>> RUN GO111MODULE=on GOOS=linux go get -ldflags "-linkmode external -extldflags -static" github.com/jaeles-project/jaeles
   3 |     RUN GO111MODULE=on GOOS=linux go get -ldflags "-linkmode external -extldflags -static" github.com/mafredri/cdp
   4 |     FROM alpine:latest
--------------------
ERROR: failed to solve: process "/bin/sh -c GO111MODULE=on GOOS=linux go get -ldflags \"-linkmode external -extldflags -static\" github.com/jaeles-project/jaeles" did not complete successfully: exit code: 1```
  • Loading branch information
Nishantbhagat57 authored Jul 3, 2023
1 parent d57df77 commit c7c3159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.14-buster as builder
FROM golang:1.16-buster as builder
RUN GO111MODULE=on GOOS=linux go get -ldflags "-linkmode external -extldflags -static" github.com/jaeles-project/jaeles

FROM alpine:latest
Expand Down

0 comments on commit c7c3159

Please sign in to comment.