forked from coreos/coreos-assembler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
29 lines (22 loc) · 881 Bytes
/
Dockerfile.dev
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
# Instead of doing a slow, whole-cloth build for developer
# tests, you can quickly test changes via this file. This
# especially useful for changes to dependencies or for final
# verification of COSA code.
#
# This moves the build time from ~15 minutes to ~3-5 minutes.
# Example: buildah bud -f Dockerfile.dev -t localhost/cosa-test .
FROM quay.io/coreos-assembler/coreos-assembler:latest
WORKDIR /root/containerbuild
USER root
RUN rm -rfv /lib/coreos-assembler /usr/bin/coreos-assembler
COPY ./src/cmdlib.sh /root/containerbuild/src/
COPY ./build.sh ./deps*.txt ./vmdeps.txt ./build-deps.txt /root/containerbuild/
RUN ./build.sh install_rpms
COPY ./ /root/containerbuild/
RUN ./build.sh write_archive_info
RUN ./build.sh make_and_makeinstall
RUN make clean
WORKDIR /srv/
# run as `builder` user
USER builder
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/bin/coreos-assembler"]