-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 927 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 927 Bytes
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
28
29
###########################################################################################
# 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
WORKDIR /app
RUN pip install --no-cache-dir uv
RUN mkdir -p interpreter scripts
COPY interpreter/ interpreter/
COPY scripts/ scripts/
COPY pyproject.toml README.md ./
# Expose port 8000
EXPOSE 8000
# Install server dependencies
RUN uv pip install --system ".[server]"
# Start the server
ENTRYPOINT ["interpreter", "--server"]