14 lines
286 B
Docker
14 lines
286 B
Docker
FROM python:3.11.4-slim
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
|
|
ENV HOST 0.0.0.0
|
|
ENV PORT 8000
|
|
ENV ROOT_PATH /
|
|
ENV SNAKE starter_snake
|
|
|
|
# Run Battlesnake
|
|
ENTRYPOINT uvicorn src.server:app --host $HOST --port $PORT --root-path $ROOT_PATH |