Skip to content

Commit 07a329f

Browse files
committed
Reorg project tree
1 parent a9be903 commit 07a329f

File tree

8 files changed

+6
-5
lines changed

8 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
FROM python:alpine
88

99

10-
RUN mkdir -p /usr/src/app
11-
COPY . /usr/src/app
10+
RUN mkdir -p /usr/src
11+
COPY app /usr/src/app
1212

1313
# Download static files (JS/CSS Libraries)
1414
WORKDIR /usr/src/app/static
@@ -24,6 +24,7 @@ RUN apk add --no-cache ffmpeg tzdata curl wget && \
2424
apk del curl wget
2525

2626
WORKDIR /usr/src/app
27+
COPY ./requirements.txt requirements.txt
2728
RUN pip install --no-cache-dir -r requirements.txt
2829

2930
EXPOSE 8080
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

youtube-dl-server.py renamed to app/youtube-dl-server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ class QueueAction:
3030
'YDL_SERVER_PORT': 8080,
3131
'YDL_CACHE_DIR': '/youtube-dl/.cache',
3232
'YDL_DB_PATH': '/youtube-dl/.ydl-metadata.db',
33-
'YDL_SUBTITLES_LANGUAGES': None,
33+
'YDL_SUBTITLES_LANGUAGES': 'all',
3434
}
3535

3636
@app.route('/')
3737
def front_index():
38-
return static_file('index.html', root='./')
38+
return static_file('templates/index.html', root='./')
3939

4040

4141
@app.route('/logs')
4242
def front_logs():
43-
return static_file('logs.html', root='./')
43+
return static_file('templates/logs.html', root='./')
4444

4545

4646
@app.route('/static/:filename#.*#')
File renamed without changes.

0 commit comments

Comments
 (0)