-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
34 lines (26 loc) · 1.23 KB
/
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
FROM python:3.9-bullseye
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install build-essential libcap-dev libflac-dev libseccomp-dev libpq-dev libpcre3-dev postgresql-client wget zip -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/bemoody/wfdb/archive/10.7.0.tar.gz -O wfdb.tar.gz \
&& tar -xf wfdb.tar.gz \
&& (cd wfdb-* && ./configure --without-netfiles && make -C lib install && make -C data install) \
&& ldconfig \
&& rm -rf wfdb*
RUN wget https://github.com/bemoody/lightwave/archive/0.72.tar.gz -O lightwave.tar.gz \
&& tar -xf lightwave.tar.gz \
&& (cd lightwave-* && make sandboxed-lightwave && mkdir -p /usr/local/bin && install -m 4755 sandboxed-lightwave /usr/local/bin) \
&& rm -rf lightwave*
RUN pip install poetry \
&& rm -rf /root/.cache/pip
WORKDIR /code
COPY pyproject.toml poetry.lock ./
RUN poetry config virtualenvs.create false \
&& poetry install --no-root \
&& rm -rf /root/.cache/pypoetry /root/.cache/pip
COPY docker/uwsgi-json-logging-plugin docker/uwsgi-json-logging-plugin
RUN cd docker/uwsgi-json-logging-plugin \
&& ./build_plugin.sh
COPY . .
RUN chmod +x /code/docker/wait-for-it.sh /code/docker/dev-entrypoint.sh