forked from danmurf/autogen-studio-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 824 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
28
29
30
# Use the official Python image as the base image
FROM python:3.12-slim
# Set the image source from the repo url
ARG REPO_URL
LABEL org.opencontainers.image.source $REPO_URL
# Set environment variables for better readability
ENV APP_HOME=/app \
PATH="/home/app/.local/bin:${PATH}" \
PYTHONPATH="/home/app/.local/bin:/app:${PYTHONPATH}"
# Create the application directory and set it as the working directory
WORKDIR $APP_HOME
RUN mkdir /data
# Copy the local code to the container
COPY . $APP_HOME
# Install packaging tools
RUN pip install packaging
# Install latest version of autogenstudio
RUN pip install autogenstudio
# Confirm installation
RUN autogenstudio version
# Set the default command for the container
ENTRYPOINT ["autogenstudio", "ui", "--host", "0.0.0.0", "--port", "8081", "--appdir","/data"]