ai-voicebot/Dockerfile.server
2025-08-23 20:33:34 -07:00

51 lines
1.1 KiB
Docker

FROM ubuntu:oracular
# Install some utilities frequently used
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
gpg \
iputils-ping \
jq \
nano \
rsync \
wget \
python3 \
python3-pip \
# python3-venv \
# python3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log}
# Install latest Python3
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log}
# Install uv using the official Astral script
RUN curl -Ls https://astral.sh/uv/install.sh | bash
ENV PATH=/root/.local/bin:$PATH
WORKDIR /server
# Copy code
# Copy code and entrypoint
COPY ./server /server
COPY ./client/build /client/build
COPY ./server/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Set environment variable for production mode (default: development)
ENV PRODUCTION=false
# the cache and target directories are on different filesystems, hardlinking may not be supported.
ENV UV_LINK_MODE=copy
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]