Skip to content

Commit 23dc441

Browse files
authored
Merge pull request #71 from smart-linux-shell/integration
Integration
2 parents 23c44d3 + cde351d commit 23dc441

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ WORKDIR /app
44

55
COPY ./app /app/
66

7-
RUN mkdir -p /data
8-
COPY ./pkg /data
7+
RUN mkdir -p /deb
8+
COPY ./pkg /deb/
99

1010
RUN apt-get update
1111

app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def index():
2121
@app.route('/deb/<path:filename>')
2222
def serve_deb_repo(filename):
2323
try:
24-
filepath = os.path.join('/data', filename)
24+
filepath = os.path.join('/deb', filename)
2525
if os.path.exists(filepath):
2626
log.info(f"Serving file {filepath}.")
2727
# Get the directory path and actual filename
28-
directory = os.path.dirname(os.path.join('/data', filename))
28+
directory = os.path.dirname(os.path.join('/deb', filename))
2929
basename = os.path.basename(filename)
3030
return send_from_directory(directory, basename)
3131
else:

0 commit comments

Comments
 (0)