Skip to content

Commit

Permalink
Merge pull request #733 from CosmWasm/docker-build
Browse files Browse the repository at this point in the history
Upgrade docker images in dockerfile
  • Loading branch information
alpe authored Jan 25, 2022
2 parents d500cb3 + 848eb35 commit de38ea0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ jobs:
- attach_workspace:
at: /tmp/workspace
- 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:
name: Build Docker artifact
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_SHA1}" .
Expand All @@ -163,7 +165,9 @@ jobs:
- attach_workspace:
at: /tmp/workspace
- 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:
name: Build Docker artifact
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_TAG}" .
Expand All @@ -182,10 +186,10 @@ workflows:
- docker-image:
requires:
- setup-dependencies
filters:
branches:
only:
- master
# filters:
# branches:
# only:
# - master
- docker-tagged:
filters:
tags:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker build . -t cosmwasm/wasmd:latest
# 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
# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile
Expand All @@ -22,7 +22,7 @@ RUN sha256sum /lib/libwasmvm_muslc.a | grep d16a2cab22c75dbe8af32265b9346c626607
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

Expand Down

0 comments on commit de38ea0

Please sign in to comment.