diff --git a/Dockerfile b/Dockerfile index 6d544bc..e4832d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV PASTE_DIR=pastes COPY . . -RUN apk add --no-cache python3 py3-flask py3-waitress cron +RUN apk add --no-cache python3 py3-flask py3-waitress EXPOSE 8080 diff --git a/app.py b/app.py index dbe1486..7be3a2f 100644 --- a/app.py +++ b/app.py @@ -28,7 +28,7 @@ def bin(): def view_paste(paste_id): file_path = os.path.join(paste_dir, paste_id) if not os.path.exists(file_path): - return redirect("http://localhost:5000", code=302) + return redirect("/", code=302) with open(file_path, 'r') as f: content = f.read() diff --git a/paste/2f2ffb8b71cb9370 b/paste/2f2ffb8b71cb9370 new file mode 100644 index 0000000..d3c5112 --- /dev/null +++ b/paste/2f2ffb8b71cb9370 @@ -0,0 +1 @@ +tsetst \ No newline at end of file