forked from not-empty/node-clear-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·37 lines (22 loc) · 835 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
36
37
FROM clearlinux:latest AS builder
ENV VERSION_ID 34460
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
RUN source /os-release
RUN mkdir /install_root
RUN swupd os-install -V ${VERSION_ID} \
--path /install_root --statedir /swupd-state \
--bundles=os-core-update,nodejs-basic --no-boot-update
RUN mkdir /os_core_install
COPY --from=clearlinux/os-core:latest / /os_core_install/
RUN cd / && \
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
FROM clearlinux/os-core:latest
COPY --from=builder /install_root /
ENV NAME="node-clear-linux"
COPY docker-node-entrypoint /usr/bin/
RUN chmod +x /usr/bin/docker-node-entrypoint
RUN mkdir -p /usr/src/
RUN chmod -R 777 /usr/src/
WORKDIR /usr/src/
ENTRYPOINT ["/usr/bin/docker-node-entrypoint"]
CMD ["node"]