feat: add Docker support with Coolify deployment instructions
This commit is contained in:
parent
e35c270f02
commit
e0c1bbe3a2
10
.dockerignore
Normal file
10
.dockerignore
Normal file
@ -0,0 +1,10 @@
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.pyd
|
||||
.env
|
||||
node_modules/
|
||||
.git
|
||||
.gitignore
|
||||
windsurfrules
|
||||
Input/
|
||||
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
# Use official Python image
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5000
|
||||
CMD ["python", "app.py"]
|
||||
21
README.md
21
README.md
@ -1 +1,20 @@
|
||||
A simple, editable attendance table with dates as rows and player names (plus guest) as columns. Users can mark their attendance with a click. No login, no user management, just a fast and easy attendance tracker.
|
||||
## Sport Attendance Sheet
|
||||
|
||||
A simple, editable attendance table with dates as rows and player names (plus guest) as columns. Users can mark their attendance with a click. No login, no user management, just a fast and easy attendance tracker.
|
||||
|
||||
### Deploying to Coolify (Docker)
|
||||
|
||||
1. **Build and push the Docker image** (or connect your repo to Coolify):
|
||||
- If using Git: Push this repo to your Git provider and connect it in Coolify.
|
||||
- If building locally:
|
||||
```sh
|
||||
docker build -t yourusername/sport-attendance-sheet .
|
||||
docker run -p 5000:5000 yourusername/sport-attendance-sheet
|
||||
```
|
||||
2. **Create a new Docker app in Coolify**
|
||||
- Set the port to `5000`.
|
||||
- Ensure persistent storage for `attendance_data.json` if you want data to survive redeploys.
|
||||
- Set environment variable `PORT=5000` if needed.
|
||||
|
||||
3. **Access your app**
|
||||
- Once deployed, your app will be available at the URL Coolify provides.
|
||||
Loading…
x
Reference in New Issue
Block a user