31 lines
807 B
Plaintext
31 lines
807 B
Plaintext
FROM alpine AS builder
|
|
|
|
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v4.0.0%2Bbalena2/qemu-4.0.0.balena2-aarch64.tar.gz
|
|
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
|
|
|
|
FROM arm64v8/alpine
|
|
|
|
COPY --from=builder qemu-aarch64-static /usr/bin
|
|
|
|
COPY ui/dependencies.sh /tmp
|
|
RUN chmod +x /tmp/dependencies.sh && \
|
|
/tmp/dependencies.sh && \
|
|
rm -f /tmp/dependencies.sh
|
|
|
|
COPY gen/ /opt/gen
|
|
COPY confs/site/ /opt/confs/site
|
|
COPY confs/global/ /opt/confs/global
|
|
COPY ui/ /opt/entrypoint
|
|
COPY settings.json /opt
|
|
|
|
COPY ui/prepare.sh /tmp
|
|
RUN chmod +x /tmp/prepare.sh && \
|
|
/tmp/prepare.sh && \
|
|
rm -f /tmp/prepare.sh
|
|
|
|
EXPOSE 5000
|
|
|
|
WORKDIR /opt/entrypoint
|
|
ENV FLASK_APP entrypoint.py
|
|
ENTRYPOINT ["/usr/bin/python3", "-m", "flask", "run", "--host=0.0.0.0"]
|