This commit is contained in:
Ross
2025-01-06 11:14:34 +00:00
parent f0c5964a5a
commit d891c7b9ee
11 changed files with 52 additions and 19 deletions
+8 -2
View File
@@ -1,5 +1,6 @@
# pull official base image
FROM python:3.12.1-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# set work directory
WORKDIR /usr/src/rad
@@ -17,9 +18,14 @@ RUN apt-get update && apt-get -y install postgresql postgresql-contrib git libca
# install dependencies
RUN pip install --upgrade pip
#RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt
RUN uv venv /opt/venv
# Use the virtual environment automatically
ENV VIRTUAL_ENV=/opt/venv
# Place entry points in the environment at the front of the path
ENV PATH="/opt/venv/bin:$PATH"
RUN uv pip install -r requirements.txt
# copy project
COPY . .