forked from gmacario/easy-build
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
35 lines (26 loc) · 982 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
# ===========================================================================================
# Base Dockerfile for building embedded distros
#
# References:
# https://www.docker.io/learn/dockerfile/level1/
# https://www.docker.io/learn/dockerfile/level2/
# ===========================================================================================
FROM that/baseimage:0.9.16
# UPSTREAM MAINTAINER Gianpaolo Macario, [email protected]
MAINTAINER Chris McClimans, [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