mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
[Docker] Add support for arm32/64 (#2104)
This commit is contained in:
parent
e79a02ac2e
commit
3585575d68
5 changed files with 78 additions and 1 deletions
21
Dockerfile
21
Dockerfile
|
@ -1,4 +1,23 @@
|
|||
FROM php:7-apache
|
||||
ARG FROM_ARCH=amd64
|
||||
|
||||
# Multi-stage build, see https://docs.docker.com/develop/develop-images/multistage-build/
|
||||
FROM alpine AS builder
|
||||
|
||||
# Download QEMU
|
||||
ADD https://github.com/balena-io/qemu/releases/download/v5.2.0%2Bbalena4/qemu-5.2.0.balena4-arm.tar.gz .
|
||||
RUN tar zxvf qemu-5.2.0.balena4-arm.tar.gz --strip-components 1
|
||||
ADD https://github.com/balena-io/qemu/releases/download/v5.2.0%2Bbalena4/qemu-5.2.0.balena4-aarch64.tar.gz .
|
||||
RUN tar zxvf qemu-5.2.0.balena4-aarch64.tar.gz --strip-components 1
|
||||
|
||||
FROM $FROM_ARCH/php:7-apache
|
||||
|
||||
LABEL description="RSS-Bridge is a PHP project capable of generating RSS and Atom feeds for websites that don't have one."
|
||||
LABEL repository="https://github.com/RSS-Bridge/rss-bridge"
|
||||
LABEL website="https://github.com/RSS-Bridge/rss-bridge"
|
||||
|
||||
# Add QEMU
|
||||
COPY --from=builder qemu-arm-static /usr/bin
|
||||
COPY --from=builder qemu-aarch64-static /usr/bin
|
||||
|
||||
ENV APACHE_DOCUMENT_ROOT=/app
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue