-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 926 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM centos:7
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.name="MFC node" \
org.label-schema.vendor="Sergio Barvenko" \
org.label-schema.livence="MIT" \
org.label-schema.build-data="20191111"
MAINTAINER MFCoin <twitter.com/MFC_tech>
ARG MFC_VERSION=0.7.10
ARG MFC_TAG=v.3.0.0.2
RUN yum install -y --setopt=tsflags=nodocs wget unzip
RUN cd /root \
&& wget https://github.com/MFrcoin/MFCoin/releases/download/${MFC_TAG}/mfcoin-${MFC_VERSION}-linux.zip \
&& mkdir .MFC \
&& unzip mfcoin-${MFC_VERSION}-linux.zip \
&& mv mfcoin-${MFC_VERSION}/* .MFC/ \
&& rm -rf mfcoin-${MFC_VERSION}*
RUN yum remove -y wget unzip git \
&& yum clean all \
&& rm -rf /var/cache/yum
COPY mfcoin.conf /root/.MFC/mfcoin.conf
EXPOSE 22825
RUN cd /root/.MFC/bin/
WORKDIR /root/.MFC/bin
RUN chmod +x /root/.MFC/bin/mfcoind
ENTRYPOINT ["./mfcoind", "-conf=/root/.MFC/mfcoin.conf"]