Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cyilong committed Aug 10, 2022
1 parent f2e3e71 commit e70fa30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
#
# Build image: docker build -t bianjie/irita .
#
FROM golang:1.17.3-alpine3.14 as builder
FROM golang:1.17.3-buster as builder

# this comes from standard alpine nightly file
# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile
# with some changes to support CosmWasm toolchain, etc
RUN set -eux; apk add --no-cache ca-certificates build-base;
# RUN set -eux; apk add --no-cache ca-certificates build-base;

# Set up dependencies
ENV PACKAGES make gcc git libc-dev bash openssl
ENV GOPROXY https://goproxy.cn,direct

WORKDIR /irita

# Add source files
COPY . .

# Install minimum necessary dependencies
RUN apk add $PACKAGES
RUN apt-get update && apt-get install $PACKAGES -y

# NOTE: add these to run with LEDGER_ENABLED=true
# RUN apk add libusb-dev linux-headers
Expand Down

0 comments on commit e70fa30

Please # to comment.