Spaces:
Sleeping
Sleeping
drakosfire
commited on
Commit
•
c9deeac
1
Parent(s):
d4b9975
Reverting to hash d4b9975 and keeping README and Dockerfile changes
Browse files- Dockerfile +14 -4
- README.md +19 -1
Dockerfile
CHANGED
@@ -1,11 +1,21 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.10-slim
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# Set the working directory in the container
|
5 |
-
WORKDIR /app
|
6 |
|
7 |
-
# Copy the current directory contents into the container at /app
|
8 |
-
COPY . /app
|
9 |
|
10 |
# Install any necessary dependencies specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
@@ -17,4 +27,4 @@ EXPOSE 5000
|
|
17 |
ENV FLASK_APP=app.py
|
18 |
|
19 |
# Command to run the Flask app
|
20 |
-
CMD ["flask", "run", "--host=0.0.0.0", "--port=
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
+
# Set up a new user named "user" with user ID 1000
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
|
7 |
+
# Switch to the "user" user
|
8 |
+
USER user
|
9 |
+
|
10 |
+
# Set home to the user's home directory
|
11 |
+
ENV HOME=/home/user \
|
12 |
+
PATH=/home/user/.local/bin:$PATH
|
13 |
+
|
14 |
# Set the working directory in the container
|
15 |
+
WORKDIR $HOME/app
|
16 |
|
17 |
+
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
18 |
+
COPY --chown=user . $HOME/app
|
19 |
|
20 |
# Install any necessary dependencies specified in requirements.txt
|
21 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
27 |
ENV FLASK_APP=app.py
|
28 |
|
29 |
# Command to run the Flask app
|
30 |
+
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]
|
README.md
CHANGED
@@ -1,10 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
#Store Generator
|
2 |
## Another DnD Tool from Drakosfire
|
3 |
|
4 |
This is a work in progress. I got about 80% of the way to rendering the the Chat GPT 4o generated store into a static html format.
|
5 |
When a friend suggested a different format choice. 3 weeks later I'm writing JavaScript because I've decided what I want is a drag and drop DnD Page formatting tool.
|
6 |
I've got the core functionality built in and am expanding blocks.
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
All css in /dependencies comes from the incredible folk at https://github.com/naturalcrit/homebrewery/ as does the original formatting and a whole lot of inspiration.
|
10 |
|
|
|
1 |
+
---
|
2 |
+
title: Drakosfires Dungeons and Dragons Statblock Generator
|
3 |
+
emoji: 🏪
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: purple
|
6 |
+
sdk: docker
|
7 |
+
app_port: 7860
|
8 |
+
---
|
9 |
+
|
10 |
#Store Generator
|
11 |
## Another DnD Tool from Drakosfire
|
12 |
|
13 |
This is a work in progress. I got about 80% of the way to rendering the the Chat GPT 4o generated store into a static html format.
|
14 |
When a friend suggested a different format choice. 3 weeks later I'm writing JavaScript because I've decided what I want is a drag and drop DnD Page formatting tool.
|
15 |
I've got the core functionality built in and am expanding blocks.
|
16 |
+
Currently pages are pretty janky and am working to fix.
|
17 |
+
Need more user feedback, loading bars.
|
18 |
+
|
19 |
+
Future additions :
|
20 |
+
Gif of talking head for store keeper.
|
21 |
+
Use a generated script for rolepplay interaction.
|
22 |
+
Voiced output.
|
23 |
+
Whisper sync to handle user voice input.
|
24 |
+
|
25 |
+
|
26 |
|
27 |
All css in /dependencies comes from the incredible folk at https://github.com/naturalcrit/homebrewery/ as does the original formatting and a whole lot of inspiration.
|
28 |
|