mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
docker: Build from alpine linux
This commit is contained in:
parent
506c927791
commit
c37a704a5f
2 changed files with 28 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -15,6 +15,7 @@
|
|||
*/**/*dapps*
|
||||
Godeps/_workspace/pkg
|
||||
Godeps/_workspace/bin
|
||||
.idea
|
||||
|
||||
#*
|
||||
.#*
|
||||
|
|
|
|||
27
docker/Dockerfile-alpine
Normal file
27
docker/Dockerfile-alpine
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
FROM jeanblanchard/alpine-glibc
|
||||
MAINTAINER Jim Alateras <jima@comware.com.au>
|
||||
|
||||
ENV APP_HOME /app
|
||||
ENV APP_USER ethereum
|
||||
ENV APP_GROUP ethereum
|
||||
ENV PATH $APP_HOME:$PATH
|
||||
ENV ETHEREUM_BIN=https://github.com/ethereum/go-ethereum/releases/download/v1.3.5/geth-Linux64-20160303152500-1.3.5-34b622a.tar.bz2
|
||||
|
||||
RUN \
|
||||
addgroup -S $APP_USER && \
|
||||
adduser -S -s /bin/bash -G $APP_GROUP $APP_USER
|
||||
|
||||
RUN \
|
||||
apk add --update bash wget && \
|
||||
mkdir -p $APP_HOME && \
|
||||
cd $APP_HOME && \
|
||||
wget -qO- --no-check-certificate $ETHEREUM_BIN | tar xvjf - && \
|
||||
chown -R $APP_USER:$APP_GROUP $APP_HOME && \
|
||||
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
|
||||
|
||||
EXPOSE 8545
|
||||
EXPOSE 30303
|
||||
|
||||
USER $APP_USER
|
||||
WORKDIR $APP_HOME
|
||||
CMD ["./geth"]
|
||||
Loading…
Reference in a new issue