-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
Dockerfile
27 lines (20 loc) · 879 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
###########################################################################################
# This Dockerfile runs an LMC-compatible websocket server at / on port 8000. #
# To learn more about LMC, visit https://docs.openinterpreter.com/protocols/lmc-messages. #
###########################################################################################
FROM python:3.11.8
# Set environment variables
# ENV OPENAI_API_KEY ...
ENV HOST 0.0.0.0
# ^ Sets the server host to 0.0.0.0, Required for the server to be accessible outside the container
# Copy required files into container
RUN mkdir -p interpreter scripts
COPY interpreter/ interpreter/
COPY scripts/ scripts/
COPY poetry.lock pyproject.toml README.md ./
# Expose port 8000
EXPOSE 8000
# Install server dependencies
RUN pip install ".[server]"
# Start the server
ENTRYPOINT ["interpreter", "--server"]