.
This commit is contained in:
+8
-2
@@ -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 . .
|
||||
Reference in New Issue
Block a user