Docker maintenance
This commit is contained in:
@@ -29,6 +29,7 @@ FROM python:3.11-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libpq5 \
|
||||
curl \
|
||||
openssh-client \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create non-root user
|
||||
|
||||
@@ -70,8 +70,12 @@ python -m scripts.seed_data
|
||||
7. **Run the application**:
|
||||
```bash
|
||||
flask run
|
||||
# Or in debug mode
|
||||
FLASK_ENV=development flask run --debug --port 5000
|
||||
|
||||
# Or using the WSGI file
|
||||
python wsgi.py
|
||||
|
||||
```
|
||||
|
||||
The API will be available at `http://localhost:5000`
|
||||
|
||||
+3
-1
@@ -57,7 +57,9 @@ services:
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
nginx:
|
||||
image: nginx:1.27-alpine
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user