mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
feat: Create ollama container and pull initial image.
Refs: OPS-17, OPS-12, OPS,10
This commit is contained in:
parent
c2d6cd822a
commit
c72ee2617e
4 changed files with 27 additions and 6 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -3,21 +3,21 @@ FROM python:3.12-alpine AS base
|
|||
# VENV not needed in docker container
|
||||
ENV POETRY_VIRTUALENVS_CREATE=false
|
||||
|
||||
COPY ./entrypoint.sh /
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add curl
|
||||
RUN pip install poetry
|
||||
RUN poetry install
|
||||
|
||||
|
||||
FROM base as dev
|
||||
|
||||
# Expose development port
|
||||
EXPOSE 5000
|
||||
|
||||
# Include host flag to make flask listen on all interfaces
|
||||
# Otherwise it is not accessible from the outside.
|
||||
CMD [ "flask", "--app", "senju/main", "run", "--debug", "--host=0.0.0.0"]
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue