Fix builds on ARM arch but keeping ARM cross builds. Fix #638.

This commit is contained in:
Adrien Kühn
2018-12-16 12:57:08 +01:00
parent 14695cf975
commit 117aaf0ceb
8 changed files with 188 additions and 31 deletions

View File

@@ -1,7 +1,5 @@
FROM resin/rpi-raspbian:stretch
RUN [ "cross-build-start" ]
RUN apt-get update \
&& apt-get install -y \
ca-certificates \
@@ -16,5 +14,3 @@ EXPOSE 8080
COPY nginx.conf /etc/nginx/nginx.conf
CMD ["nginx", "-g", "daemon off;"]
RUN [ "cross-build-end" ]

View File

@@ -0,0 +1,22 @@
# This Dockerfile is for building ARM images on x64 machine like Docker Hub
FROM resin/rpi-raspbian:stretch
RUN [ "cross-build-start" ]
RUN apt-get update \
&& apt-get install -y \
ca-certificates \
nginx \
&& rm -rf /var/lib/apt/lists/*
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
EXPOSE 8080
COPY nginx.conf /etc/nginx/nginx.conf
CMD ["nginx", "-g", "daemon off;"]
RUN [ "cross-build-end" ]