-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (21 loc) · 923 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
FROM python:3.9-slim as base
LABEL org.opencontainers.image.authors="JacekZubielik"
LABEL org.opencontainers.image.description="Docker OLED Control Configuration for Audiophonics EvoSabre DAC & LMS"
LABEL org.opencontainers.image.source="https://github.com/jacekzubielik/docker-oled-evo-sabre"
RUN mkdir /app
RUN apt-get update \
&& apt-get -y install curl telnet \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
FROM base as python-deps
RUN apt-get update \
&& apt-get -y install build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& pip install --upgrade pip wheel
COPY ./app/requirements.txt /app/
RUN pip install -r requirements.txt
COPY ./app /app
CMD ["sh", "-c", "python3 -u oled4docker.py MAC=$MAC OLED=$OLED LOGFILE=$LOGFILE LOCATION=$LOCATION LMSIP=$LMSIP"]
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1