-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.crossbuild
30 lines (22 loc) · 901 Bytes
/
Dockerfile.crossbuild
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
FROM balenalib/rpi-raspbian:latest
RUN [ "cross-build-start" ]
USER root
EXPOSE 8000
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
RUN apt-get update && \
apt-get -qy install ca-certificates build-essential git ffmpeg python3-dev libasound2-dev python3 python3-pip ssh-client libsystemd-dev && \
rm -rf /var/lib/apt/lists/* && \
apt-get -qy clean all
# Install pip requirements
RUN pip3 install --upgrade pip
COPY requirements.txt .
RUN pip3 install -r requirements.txt
WORKDIR /opt/ebilal
COPY . /opt/ebilal
COPY settings_example.toml /opt/ebilal/settings.toml
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
CMD ["python3","/opt/ebilal/ebilal.py"]
RUN [ "cross-build-end" ]