forked from LESHIY-ODESSA/padavan-ng
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
34 lines (27 loc) · 1.03 KB
/
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
FROM lsiobase/ubuntu:xenial
# env setting
LABEL maintainer="Andy Voigt <[email protected]>"
# update and upgrade all pkgs
ENV DEBIAN_FRONTEND noninteractive
RUN \
apt-get update && apt-get -yq dist-upgrade && \
apt-get install -yq apt-utils locales
# set right locale and use it
RUN echo "en_US.UTF-8 UTF-8"> /etc/locale.gen && locale-gen
ENV LC_ALL en_US.UTF-8
# install all the required pkgs
RUN apt-get install -yq \
unzip curl wget cmake gperf gawk flex bison nano help2man libtool-bin \
git python-docutils gettext automake autopoint texinfo build-essential \
pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# clone repository
RUN git clone --depth=1 https://github.com/zanezam/padavan-ng.git /opt/padavan-ng
# fix permissions && build toolchain
RUN cd /opt/padavan-ng/toolchain && chmod a+x clean_sources.sh build_toolchain.sh && \
./clean_sources.sh && ./build_toolchain.sh
# default dir
WORKDIR /opt/padavan-ng