Réorganisation du code

This commit is contained in:
2023-05-17 07:54:38 +02:00
parent 61c61d203b
commit fba7a5a057
14 changed files with 343 additions and 174 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
FROM alpine:latest
LABEL authors="Guillaume"
# 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 static .
COPY templates .
COPY app.py .
# command to run on container start
CMD [ "python", "./app.py" ]