Spaces:
Sleeping
Sleeping
File size: 518 Bytes
1b06d83 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libuv1-dev \
&& rm -rf /var/lib/apt/lists/*
# Install duckdb-server using pip
RUN pip install duckdb-server
# Create a non-root user and switch to it
RUN useradd -m duckdb
USER duckdb
# Make port 3000 available to the world outside this container
EXPOSE 3000
# Run duckdb-server
CMD ["duckdb-server"]
|