From 3186fce279cad909693bc79d8cd7b0610e3e4665 Mon Sep 17 00:00:00 2001 From: Gu1llaum-3 Date: Tue, 3 Jan 2023 07:45:30 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20dossier=20docker=20pour=20build?= =?UTF-8?q?=20avec=20Dockerfile,=20requirements=20et=20dossier=20src?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Docker/Dockerfile | 28 ++++++++++++++++++++++++++++ Docker/requirements.txt | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 Docker/Dockerfile create mode 100644 Docker/requirements.txt diff --git a/Docker/Dockerfile b/Docker/Dockerfile new file mode 100644 index 0000000..eb2325f --- /dev/null +++ b/Docker/Dockerfile @@ -0,0 +1,28 @@ +FROM alpine:latest + +# set the working directory in the container +WORKDIR /app + +# copy the dependencies file to the working directory +COPY requirements.txt . + +# Update packages +RUN apk update + +# Install python3 et pip +RUN apk add python3 py3-pip + +# install dependencies +RUN pip install -r requirements.txt + +# install ffmpeg for SpotDL +RUN spotdl --download-ffmpeg + +# install zip +RUN apk update && apk add zip + +# copy the content of the local src directory to the working directory +COPY src/ . + +# command to run on container start +CMD [ "python", "./app.py" ] diff --git a/Docker/requirements.txt b/Docker/requirements.txt new file mode 100644 index 0000000..6dc362b --- /dev/null +++ b/Docker/requirements.txt @@ -0,0 +1,2 @@ +spotdl +flask