-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (41 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
46 lines (41 loc) · 1.02 KB
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
36
37
38
39
40
41
42
43
44
45
46
FROM debian:jessie
MAINTAINER Shawn Nock <nock@nocko.se>
RUN gpg --keyserver pool.sks-keyservers.net \
--recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
wget \
git \
subversion \
build-essential \
unzip \
libncurses5-dev \
libz-dev \
flex \
intltool \
wget \
gettext \
gawk \
python \
rsync \
man-db \
openssh-client \
quilt \
libssl-dev && \
wget -O /usr/local/bin/gosu \
"https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" && \
wget -O /usr/local/bin/gosu.asc \
"https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" && \
gpg --verify /usr/local/bin/gosu.asc && \
rm /usr/local/bin/gosu.asc && \
chmod +x /usr/local/bin/gosu
ENV USER openwrt
ENV UID 1000
RUN useradd -m -u $UID $USER
ENV HOME /home/$USER
ENV REPO_PATH $HOME/openwrt
WORKDIR $HOME
RUN mkdir $REPO_PATH
WORKDIR $REPO_PATH
CMD gosu $USER /bin/bash