fdropper 0.0.2__tar.gz → 0.0.3__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.3
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,17 @@
1
+ FROM python:3.14
2
+ WORKDIR /home/fdropper
3
+
4
+ COPY /dist/fdropper-0.0.2-py2.py3-none-any.whl /home/fdropper
5
+ RUN pip install fdropper-0.0.2-py2.py3-none-any.whl
6
+
7
+ COPY static ./static
8
+ COPY templates ./templates
9
+ RUN mkdir uploads
10
+
11
+ EXPOSE 8000
12
+
13
+ RUN useradd --create-home fdropper
14
+ RUN chown -R fdropper:fdropper /home/fdropper
15
+ USER fdropper
16
+
17
+ CMD ["gunicorn", "-w", "4","-b" ,"0.0.0.0", "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='/home/fdropper/templates', static_folder='/home/fdropper/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.3"
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