Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ WORKDIR /app

COPY ./app /app/

RUN mkdir -p /data
COPY ./pkg /data
RUN mkdir -p /deb
COPY ./pkg /deb/

RUN apt-get update

Expand Down
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def index():
@app.route('/deb/<path:filename>')
def serve_deb_repo(filename):
try:
filepath = os.path.join('/data', filename)
filepath = os.path.join('/deb', filename)
if os.path.exists(filepath):
log.info(f"Serving file {filepath}.")
# Get the directory path and actual filename
directory = os.path.dirname(os.path.join('/data', filename))
directory = os.path.dirname(os.path.join('/deb', filename))
basename = os.path.basename(filename)
return send_from_directory(directory, basename)
else:
Expand Down
Loading