Merge pull request #733 from CosmWasm/docker-build
Upgrade docker images in dockerfile
This commit is contained in:
@@ -143,7 +143,9 @@ jobs:
|
|||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
- setup_remote_docker:
|
||||||
|
# >= v20.10 https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2
|
||||||
|
version: 20.10.11
|
||||||
- run:
|
- run:
|
||||||
name: Build Docker artifact
|
name: Build Docker artifact
|
||||||
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_SHA1}" .
|
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_SHA1}" .
|
||||||
@@ -163,7 +165,9 @@ jobs:
|
|||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
- setup_remote_docker:
|
||||||
|
# >= v20.10 https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2
|
||||||
|
version: 20.10.11
|
||||||
- run:
|
- run:
|
||||||
name: Build Docker artifact
|
name: Build Docker artifact
|
||||||
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_TAG}" .
|
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_TAG}" .
|
||||||
@@ -182,10 +186,10 @@ workflows:
|
|||||||
- docker-image:
|
- docker-image:
|
||||||
requires:
|
requires:
|
||||||
- setup-dependencies
|
- setup-dependencies
|
||||||
filters:
|
# filters:
|
||||||
branches:
|
# branches:
|
||||||
only:
|
# only:
|
||||||
- master
|
# - master
|
||||||
- docker-tagged:
|
- docker-tagged:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# docker build . -t cosmwasm/wasmd:latest
|
# docker build . -t cosmwasm/wasmd:latest
|
||||||
# docker run --rm -it cosmwasm/wasmd:latest /bin/sh
|
# docker run --rm -it cosmwasm/wasmd:latest /bin/sh
|
||||||
FROM golang:1.17.3-alpine AS go-builder
|
FROM golang:1.17-alpine3.15 AS go-builder
|
||||||
|
|
||||||
# this comes from standard alpine nightly file
|
# this comes from standard alpine nightly file
|
||||||
# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile
|
# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile
|
||||||
@@ -22,7 +22,7 @@ RUN sha256sum /lib/libwasmvm_muslc.a | grep d16a2cab22c75dbe8af32265b9346c626607
|
|||||||
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc make build
|
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc make build
|
||||||
|
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
FROM alpine:3.13
|
FROM alpine:3.15
|
||||||
|
|
||||||
COPY --from=go-builder /code/build/wasmd /usr/bin/wasmd
|
COPY --from=go-builder /code/build/wasmd /usr/bin/wasmd
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user