-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(examples): updated golang version in examples
Updated golang image version in demo examples. Used the latest available golang version. Old version had compatibility issues with Apple M1.
- Loading branch information
1 parent
635f074
commit 241118e
Showing
2 changed files
with
4 additions
and
4 deletions.
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM golang:1.8.3-alpine | ||
FROM golang:1.17.7-alpine | ||
|
||
ENV PORT=8080 | ||
EXPOSE ${PORT} | ||
WORKDIR /app | ||
|
||
COPY main.go . | ||
|
||
RUN go build -o main . | ||
RUN go mod init main && go build -o main . | ||
|
||
ENTRYPOINT ["./main"] |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM golang:1.8.3-alpine | ||
FROM golang:1.17.7-alpine | ||
|
||
ENV PORT=8080 | ||
EXPOSE ${PORT} | ||
WORKDIR /app | ||
|
||
COPY main.go . | ||
|
||
RUN go build -o main . | ||
RUN go mod init main && go build -o main . | ||
|
||
ENTRYPOINT ["./main"] |