🚧 WIP
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@ FROM python:3.12-slim
|
|||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
CONFIG_PATH=/app/config.json
|
CONFIG_PATH=/app/config/config.json
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ COPY requirements.txt .
|
|||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY app ./app
|
COPY app ./app
|
||||||
COPY config.json ./config.json
|
COPY config.json ./config/config.json
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,12 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
container_name: bohemma-swish
|
container_name: bohemma-swish
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "${APP_PORT:-8080}:8000"
|
||||||
environment:
|
environment:
|
||||||
CONFIG_PATH: /app/config.json
|
CONFIG_PATH: /app/config.json
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.json:/app/config.json:ro
|
- config:/app/config
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
config:
|
||||||
Reference in New Issue
Block a user