-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathDockerfile.arm32v7
38 lines (26 loc) · 1.13 KB
/
Dockerfile.arm32v7
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
29
30
31
32
33
34
35
36
37
# First build stage: get gemu for multi-arch building
FROM alpine AS qemu
#QEMU Download
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v4.0.0%2Bbalena2/qemu-4.0.0.balena2-arm.tar.gz
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
# New build stage: Basis-Image
FROM arm32v7/python:3.8.2-slim-buster
# Provide QEMU for this stage of docker build
COPY --from=qemu qemu-arm-static /usr/bin
LABEL maintainer="marcel.beining@gmail.com"
RUN apt-get update && \
apt-get -y install curl build-essential libssl-dev python-dev libffi-dev && \
apt-get clean && pip install --upgrade pip
# Prepare environment
WORKDIR /eazebot_docker
ENV LD_LIBRARY_PATH /usr/local/lib
ENV IN_DOCKER_CONTAINER Yes
# Install dependencies
COPY requirements.txt /eazebot_docker/
RUN pip install -r /eazebot_docker/requirements.txt --no-cache-dir
# Install and execute
# take the files and folders in local build context and add them to the Docker image’s current working directory.
COPY . /eazebot_docker/
RUN pip install -e /eazebot_docker --no-cache-dir
ENTRYPOINT ["python", "/eazebot_docker/eazebot/main.py"]
CMD []