-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.armhf
49 lines (37 loc) · 1.18 KB
/
Dockerfile.armhf
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
47
48
49
#
# Parasite server initialization and configuration docker image base for HypriotOS
# running on a Raspberry Pi
#
# http://github.com/tenstartups/parasite-docker
#
FROM arm32v6/alpine:latest
LABEL maintainer="Marc Lennox <[email protected]>"
COPY qemu-arm-static /usr/bin/
# Set environment
ENV \
PARASITE_OS=hypriotos \
HOME=/home/parasite \
RUBYLIB=/home/parasite/lib \
TERM=xterm-color
# Install base packages.
RUN \
apk --update add bash build-base busybox-extras coreutils curl figlet file-dev nano procps rsync ruby-dev ruby-irb ruby-json tar wget && \
rm -rf /var/cache/apk/*
# Install gems.
RUN gem install awesome_print net_http_unix ruby-filemagic --no-document
# Set the working directory.
WORKDIR "/home/parasite"
# Copy source files and entrypoint.
COPY lib lib
COPY entrypoint.rb /docker-entrypoint
# Copy parasite files.
COPY conf.d conf.d
# The directory name under parasite must match the name of the conf.d script
COPY files 10-base
# Set the entrypoint script.
ENTRYPOINT ["/docker-entrypoint"]
# Set the default command
CMD ["/bin/bash"]
# Dump the revision argument to file if present
ONBUILD ARG BUILD_REVISION
ONBUILD RUN echo ${BUILD_REVISION} > ./REVISION