forked from liupeng0518/docker-chrony
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharm32v6.dockerfile
More file actions
executable file
·28 lines (22 loc) · 839 Bytes
/
arm32v6.dockerfile
File metadata and controls
executable file
·28 lines (22 loc) · 839 Bytes
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
### Build ARMv5 Container
### Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
FROM alpine:3 AS builder
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz
# hadolint ignore=DL3018,DL3019,DL4006
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
### Build Final Container
FROM arm32v6/alpine:3
# Add QEMU
COPY --from=builder qemu-arm-static /usr/bin
# Install The Chrony Package
# hadolint ignore=DL3018
RUN apk --update --no-cache add chrony tini && \
rm -rf /var/cache/apk/* /etc/chrony
# Copy The Start Script
COPY files/start.sh /usr/local/bin/start.sh
RUN chmod 0755 /usr/local/bin/start.sh
# Set The Work Directory And Command Points
WORKDIR /tmp
EXPOSE 123/udp
ENTRYPOINT ["tini", "--"]
CMD ["/usr/local/bin/start.sh"]