morph-labs / rift

Rift: an AI-native language server for your personal AI software engineer
https://morph.so
Apache License 2.0
3.08k stars 149 forks source link

docker way #233

Open clement-igonet opened 10 months ago

clement-igonet commented 10 months ago

As a first step to go to docker world, to avoid to manage venv or conda, I suggest a ./rift-engine/Dockerfile for rift-engine:

FROM python:3.10.13-bookworm
WORKDIR /rift-engine
COPY . /rift-engine
RUN pip install -e .
CMD python -m rift.server.core --host 0.0.0.0 --port 7797

And then a docker-compose.yml file:

version: '3.9'

services:
  rift-engine:
    build:
      context: ./rift-engine
      dockerfile: Dockerfile
    command: python -m rift.server.core --host 0.0.0.0 --port 7797
    ports:
      - 7797:7797

Then, here is the command to build: docker compose build rift-engine

Here is the command to run: docker compose up rift-engine