Skip to content

Commit

Permalink
fix(examples): updated golang version in examples
Browse files Browse the repository at this point in the history
Updated golang image version in demo examples.
Used the latest available golang version.
Old version had compatibility issues with Apple M1.
  • Loading branch information
vvagaytsev authored and thsig committed Mar 16, 2022
1 parent 635f074 commit 241118e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/demo-project-start/backend/Dockerfile
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"]
4 changes: 2 additions & 2 deletions examples/demo-project/backend/Dockerfile
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"]

0 comments on commit 241118e

Please sign in to comment.