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.
- {fdropper-0.0.2 → fdropper-0.0.4}/PKG-INFO +1 -1
- fdropper-0.0.4/dockerfile +16 -0
- {fdropper-0.0.2 → fdropper-0.0.4}/fdropper.py +1 -1
- {fdropper-0.0.2 → fdropper-0.0.4}/pyproject.toml +1 -1
- fdropper-0.0.2/dockerfile +0 -15
- {fdropper-0.0.2 → fdropper-0.0.4}/.dockerignore +0 -0
- {fdropper-0.0.2 → fdropper-0.0.4}/.gitignore +0 -0
- {fdropper-0.0.2 → fdropper-0.0.4}/LICENSE +0 -0
- {fdropper-0.0.2 → fdropper-0.0.4}/static/scripts/javascript.js +0 -0
- {fdropper-0.0.2 → fdropper-0.0.4}/static/styles/style.css +0 -0
- {fdropper-0.0.2 → fdropper-0.0.4}/templates/index.html +0 -0
|
@@ -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
|
|
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
|
|
File without changes
|
|
File without changes
|