Skip to content

Commit 01351e1

Browse files
committed
docker: use native debian source.list, copy whole app dir, cleanup
1 parent b0c8c8c commit 01351e1

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ FROM debian:buster
1717

1818
MAINTAINER Guillaume Pellerin <guillaume.pellerin@ircam.fr>
1919

20-
RUN mkdir -p /srv/app
2120
RUN mkdir -p /srv/lib
2221
RUN mkdir -p /srv/lib/timeside
2322

2423
WORKDIR /srv/lib
2524

2625
# install confs, keys and deps
27-
COPY ./etc/apt/sources.list /etc/apt/
2826
RUN apt-get update && apt-get install -y apt-transport-https
2927
COPY debian-requirements.txt /srv/lib/
3028
RUN apt-get update && \
@@ -40,19 +38,18 @@ ENV PYTHON_EGG_CACHE=/srv/.python-eggs
4038
RUN mkdir -p $PYTHON_EGG_CACHE && \
4139
chown www-data:www-data $PYTHON_EGG_CACHE
4240

41+
# Install app
42+
COPY ./app /srv/app
43+
4344
# Link python gstreamer
44-
RUN mkdir -p /srv/app/bin
45-
COPY ./app/bin/link_gstreamer.py /srv/app/bin/
4645
RUN python /srv/app/bin/link_gstreamer.py
4746

4847
# Install Timeside plugins from ./lib
4948
RUN mkdir -p /srv/lib/plugins
5049
COPY ./lib/plugins/ /srv/lib/plugins/
51-
COPY ./app/bin/setup_plugins.sh /srv/app/bin/
5250
RUN /bin/bash /srv/app/bin/setup_plugins.sh
5351

5452
# Install Vamp plugins
55-
COPY ./app/bin/install_vamp_plugins.sh /srv/app/bin/
5653
RUN /bin/bash /srv/app/bin/install_vamp_plugins.sh
5754

5855
# Install bower

0 commit comments

Comments
 (0)