-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (25 loc) · 1000 Bytes
/
Dockerfile
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 arm64v8/ubuntu:20.04 as builder
ARG VERSION=0.1.11
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf
RUN apt update \
&& apt install -y --no-install-recommends \
libatomic1 \
wget \
ca-certificates \
apt-transport-https
RUN cd /tmp/ \
&& wget https://github.com/BitgesellOfficial/bitgesell/releases/download/${VERSION}/bitgesell_${VERSION}_amd64.deb \
&& wget http://ports.ubuntu.com/pool/main/p/perl/perl-modules-5.30_5.30.0-9build1_all.deb \
&& dpkg -i perl-modules-5.30_5.30.0-9build1_all.deb \
&& dpkg -i bitgesell_${VERSION}_amd64.deb \
&& apt-get install -y -f \
&& apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
FROM builder
ENTRYPOINT ["docker-entrypoint.sh"]
VOLUME [ "/root/.BGL" ]
WORKDIR /root/.BGL
COPY ./cmd ./docker-entrypoint.sh /usr/local/bin/
EXPOSE 8455
CMD ["bgl_oneshot"]