LangFuse / Dockerfile
Chris4K's picture
Create Dockerfile
80b3b60 verified
raw
history blame
696 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
docker.io \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir \
docker \
requests
# Make port 3000 available to the world outside this container
EXPOSE 3000
# Define environment variable to ensure Python outputs are sent to terminal
ENV PYTHONUNBUFFERED=1
# Run app.py when the container launches
CMD ["python", "app.py"]