fix: pin go version Dockerfiles (#11711)

This commit is contained in:
Aleksandr Bezobchuk 2022-04-20 14:33:56 -04:00 committed by GitHub
parent ec3644fcb5
commit 2f6a3e6b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 8 deletions

View File

@ -10,7 +10,7 @@
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simappcli:/root/.simapp simapp simd keys add foo
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.simappcli:/root/.simapp simapp simd keys list
# TODO: demo connecting rest-server (or is this in server now?)
FROM golang:alpine AS build-env
FROM golang:1.18-alpine AS build-env
# Install minimum necessary dependencies
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3

View File

@ -4,7 +4,7 @@
FROM bufbuild/buf:1.1.0 as BUILDER
FROM golang:alpine
FROM golang:1.18-alpine
RUN apk add --no-cache \
nodejs \

View File

@ -1,4 +1,5 @@
FROM golang:alpine AS build
FROM golang:1.18-alpine AS build
RUN apk add build-base git linux-headers libc-dev
RUN go install github.com/go-delve/delve/cmd/dlv@latest
WORKDIR /work
@ -20,4 +21,4 @@ WORKDIR /simd
EXPOSE 26656 26657 2345
ENTRYPOINT ["/usr/bin/wrapper.sh"]
CMD ["start", "--log_format", "plain"]
STOPSIGNAL SIGTERM
STOPSIGNAL SIGTERM

View File

@ -1,4 +1,4 @@
FROM golang:alpine AS build
FROM golang:1.18-alpine AS build
RUN apk add build-base git linux-headers
WORKDIR /work
COPY go.mod go.sum /work/

View File

@ -1,4 +1,4 @@
FROM golang:alpine as build
FROM golang:1.18-alpine as build
RUN apk add --no-cache tar git

View File

@ -1,4 +1,4 @@
FROM golang:alpine as build
FROM golang:1.18-alpine as build
RUN apk add git gcc libc-dev --no-cache
@ -15,4 +15,4 @@ RUN apk add gcc libc-dev python3 --no-cache
ENV PATH=$PATH:/bin
COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli
COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli