fdropper 0.0.2__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: fdropper
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: A file uploader with frontend that can upload files directly to a share
5
5
  Author: Reece Williams
6
6
  License-Expression: MIT
@@ -0,0 +1,16 @@
1
+ FROM python:3.14
2
+ WORKDIR /usr/local/fdropper
3
+
4
+ RUN pip install fdropper
5
+
6
+ COPY static ./static
7
+ COPY templates ./templates
8
+ RUN mkdir uploads
9
+
10
+ EXPOSE 8000
11
+
12
+ RUN useradd --create-home fdropper
13
+ RUN chown -R fdropper:fdropper /home/fdropper
14
+ USER fdropper
15
+
16
+ CMD ["gunicorn", "-w", "4","-b" ,"0.0.0.0", "--chdir", "/usr/local/fdropper", "fdropper:app"]
@@ -5,7 +5,7 @@ from werkzeug.utils import secure_filename
5
5
 
6
6
  UPLOAD_FOLDER = 'uploads'
7
7
 
8
- app = Flask(__name__)
8
+ app = Flask(__name__, template_folder='templates', static_folder='static')
9
9
  app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
10
10
  app.config['SECRET_KEY'] = secrets.token_hex()
11
11
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fdropper"
7
- version = "0.0.2"
7
+ version = "0.0.4"
8
8
  dependencies = [
9
9
  "Flask",
10
10
  "gunicorn"
fdropper-0.0.2/dockerfile DELETED
@@ -1,15 +0,0 @@
1
- FROM python:3.14
2
- WORKDIR /usr/local/fdropper
3
-
4
- RUN pip install fdropper
5
-
6
- COPY static ./static
7
- COPY templates ./templates
8
- RUN mkdir uploads
9
-
10
- EXPOSE 8000
11
-
12
- RUN useradd fdropper
13
- USER fdropper
14
-
15
- CMD ["gunicorn", "-w", "4","-b" ,"0.0.0.0", "fdropper:app"]
File without changes
File without changes
File without changes
File without changes