Spaces:
Sleeping
Sleeping
AdityaAdaki commited on
Commit ·
90e68e2
1
Parent(s): d52422a
Initial commit
Browse files- .gitattributes +0 -0
- 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 |
-
|
| 6 |
-
COPY .
|
| 7 |
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
# Create
|
| 11 |
-
RUN mkdir /code/music
|
| 12 |
-
|
| 13 |
-
|
| 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 |
|