-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 953 Bytes
/
Dockerfile
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
FROM arm64v8/debian:buster-slim
# Install dependencies
RUN apt-get update && \
apt-get install -y rsync cron ffmpeg python3-pip libasound2-dev alsa-utils openssh-client libportaudio2 libportaudiocpp0 portaudio19-dev curl procps && \
pip3 install pydub numpy pyalsaaudio pyaudio requests schedule
# Create .ssh directory
RUN mkdir -p /root/.ssh
# Copy known_hosts
COPY known_hosts /root/.ssh/known_hosts
# Copy config.json to /app
COPY config.json /home/polyppi/raspberrypi-firmware/config.json
# Copy scripts to the container
COPY audio_fw.py /usr/local/bin/audio_fw.py
COPY startup.sh /usr/local/bin/startup.sh
COPY monitor_docker.sh /usr/local/bin/monitor_docker.sh
COPY sync_config.py /usr/local/bin/sync_config.py
# Set executable permissions
RUN chmod +x /usr/local/bin/audio_fw.py /usr/local/bin/startup.sh /usr/local/bin/monitor_docker.sh /usr/local/bin/sync_config.py
# Start the startup script
CMD ["/usr/local/bin/startup.sh"]