From 52f555e53bf02e270a732ef32181a9d2ad5c1879 Mon Sep 17 00:00:00 2001 From: "Kirill Krinkin (box)" Date: Sun, 3 Nov 2024 14:22:09 +0200 Subject: [PATCH 1/2] testing --- Dockerfile | 4 ++-- app/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 88e4189..820593a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/app/main.py b/app/main.py index 8a9df28..596406f 100644 --- a/app/main.py +++ b/app/main.py @@ -21,7 +21,7 @@ def index(): @app.route('/deb/') 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 From cde351d842704d59896ab7b4a4a5fee467a4a57b Mon Sep 17 00:00:00 2001 From: "Kirill Krinkin (box)" Date: Sun, 3 Nov 2024 14:22:19 +0200 Subject: [PATCH 2/2] testing --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 596406f..eda330c 100644 --- a/app/main.py +++ b/app/main.py @@ -25,7 +25,7 @@ def serve_deb_repo(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: