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