forked from Kwiboo/LibreELEC.tv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ubuntu:xenial | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update \ | ||
&& apt-get dist-upgrade -y \ | ||
&& apt-get install -y locales sudo \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN locale-gen en_US.UTF-8 \ | ||
&& update-locale LANG=en_US.UTF-8 LANGUAGE=en_US:en | ||
ENV LANG=en_US.UTF-8 \ | ||
LANGUAGE=en_US:en \ | ||
LC_ALL=en_US.UTF-8 | ||
|
||
RUN adduser --disabled-password --gecos '' docker \ | ||
&& adduser docker sudo \ | ||
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
wget bash bc gcc sed patch patchutils tar bzip2 gzip perl gawk gperf zip unzip diffutils texinfo lzop \ | ||
g++ xfonts-utils xfonts-utils xfonts-utils xsltproc default-jre-headless \ | ||
libc6-dev libncurses5-dev \ | ||
u-boot-tools \ | ||
xz-utils make file libxml-parser-perl \ | ||
libjson-perl \ | ||
golang-go \ | ||
git openssh-client \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
USER docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Build container | ||
|
||
**Clone repo** | ||
|
||
* `cd ~/` | ||
* `git clone --branch rockchip --single-branch https://github.com/Kwiboo/LibreELEC.tv.git LibreELEC` | ||
|
||
**Build container** | ||
|
||
* `cd ~/LibreELEC` | ||
* `docker build --pull -t libreelec tools/docker` | ||
|
||
**Build image inside container** | ||
|
||
* `docker run -v ~/:/home/docker -h libreelec -it libreelec` | ||
* `cd ~/LibreELEC` | ||
* `PROJECT=Rockchip DEVICE=TinkerBoard ARCH=arm make image` |