forked from ii/easy-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (25 loc) · 925 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
# ===========================================================================================
# Base Dockerfile for building embedded distros
#
# References:
# https://www.docker.io/learn/dockerfile/level1/
# https://www.docker.io/learn/dockerfile/level2/
# ===========================================================================================
FROM gmacario/baseimage:0.9.15b
MAINTAINER Gianpaolo Macario, [email protected]
# Make sure the package repository is up to date
RUN apt-get update
RUN apt-get -y upgrade
# Install required packages
RUN apt-get install -y git tig
RUN apt-get install -y mc
# Create non-root user that will perform the build of the images
RUN useradd --shell /bin/bash build
RUN mkdir -p /home/build
RUN chown -R build /home/build
# Leave derived dockerfiles to download source repositories
RUN cd /home/build
# Run as the following user
#USER daemon
ENTRYPOINT ["/bin/bash"]
# EOF