-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Go to the image Install Go so that CDK applications written in Go can be built.
- Loading branch information
1 parent
4829f68
commit a76834e
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,17 @@ LABEL "com.github.actions.color"="yellow" | |
|
||
LABEL "maintainer"="Scott Brenner <[email protected]>" | ||
|
||
RUN apk --no-cache add nodejs npm python3 py3-pip | ||
RUN apk --no-cache add nodejs npm python3 py3-pip git make musl-dev go | ||
RUN npm install -g aws-cdk | ||
RUN pip3 install aws-cdk-lib --break-system-packages | ||
|
||
# Configure Go | ||
ENV GOROOT /usr/lib/go | ||
ENV GOPATH /go | ||
ENV PATH /go/bin:$PATH | ||
|
||
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
RUN ["chmod", "+x", "/entrypoint.sh"] | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters