AdityaAdaki commited on
Commit
90e68e2
·
1 Parent(s): d52422a

Initial commit

Browse files
Files changed (2) hide show
  1. .gitattributes +0 -0
  2. Dockerfile +8 -12
.gitattributes CHANGED
Binary files a/.gitattributes and b/.gitattributes differ
 
Dockerfile CHANGED
@@ -2,20 +2,16 @@ FROM python:3.9
2
 
3
  WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
6
- COPY ./app.py /code/app.py
7
 
8
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
9
 
10
- # Create music directory
11
- RUN mkdir /code/music
12
-
13
- # Create static directory and add default cover
14
- RUN mkdir /code/static
15
- COPY ./static/default-cover.png /code/static/default-cover.png
16
-
17
- # Copy templates
18
- COPY ./templates /code/templates
19
 
20
  EXPOSE 7860
21
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # Copy all necessary files
6
+ COPY . /code/
7
 
8
+ # Install requirements
9
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
10
 
11
+ # Create directories if they don't exist
12
+ RUN mkdir -p /code/music
13
+ RUN mkdir -p /code/static
14
+ RUN mkdir -p /code/templates
 
 
 
 
 
15
 
16
  EXPOSE 7860
17