-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (30 loc) · 983 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
28
29
30
31
32
33
34
# Create docker image from python3.9-slim
FROM python:3.9-slim
# Create python venv and add it to PATH
RUN python -m venv /ledfx/venv \
&& python -m pip install -U pip wheel setuptools
ENV PATH="/ledfx/venv/bin:$PATH"
# Install dependencies and ledfx, remove uneeded packages
#
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& apt-get install -y \
# alsa-utils \
libatlas3-base \
portaudio19-dev \
# pulseaudio \
python3-dev \
&& pip install ledfx-dev \
&& apt-get purge -y gcc python3-dev \
&& apt-get clean -y \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# Add user `ledfx` and create home folder
RUN useradd --create-home ledfx
# Set the working directory in the container
WORKDIR /home/ledfx
USER ledfx
# Expose port 8888 for web server and 5353 for mDNS discovery
EXPOSE 8888/tcp
EXPOSE 5353/udp
ENTRYPOINT [ "ledfx"]