This commit is contained in:
Your Name
2018-02-16 09:25:55 +03:00
parent 848a36f9cd
commit 74f3d3bce6
3 changed files with 11 additions and 12 deletions
+2
View File
@@ -24,6 +24,8 @@ jobs:
curl -L -o qemu-arm-static.tar.gz https://github.com/multiarch/qemu-user-static/releases/download/v2.6.0/qemu-arm-static.tar.gz &&
tar xzf qemu-arm-static.tar.gz &&
popd
#copy it to container
- sed -i -e '2iCOPY tmp/qemu-arm-static /usr/bin/qemu-arm-static\' Dockerfile-$ARCH
# build
- docker build -t $PROJECT -f Dockerfile-$ARCH .
+8 -11
View File
@@ -3,16 +3,13 @@ FROM arm32v7/python:slim
ENV LIBRARY_PATH=/lib:/usr/lib
ADD src/requirements.txt /
COPY tmp/qemu-arm-static /usr/bin/qemu-arm-static
RUN /usr/bin/apt-get update
RUN apt-get update && apt-get install -y build-essential autoconf \
&& pip install --upgrade pip && pip install -r /requirements.txt \
&& apt-get remove -y build-essential autoconf \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
#RUN apt-get update && apt-get install -y build-essential autoconf \
# && pip install --upgrade pip && pip install -r /requirements.txt \
# && apt-get remove -y build-essential autoconf \
# && apt-get autoremove -y \
# && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY src /app
#WORKDIR /app
#COPY src /app
#CMD ["python3", "-u", "/app/main.py"]
CMD ["python3", "-u", "/app/main.py"]
+1 -1
View File
@@ -1,6 +1,6 @@
aqara:
build: .
dockerfile: Dockerfile-rpi
dockerfile: Dockerfile-armhf
container_name: aqara
volumes:
- "./config:/app/config"