Skip to content

Commit

Permalink
Update Docker file to use UV
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaeger committed Sep 10, 2024
1 parent ee8c8de commit 271b9e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# ==============================================================================

# Load base Ubuntu image
FROM dmri/ci-cd AS base
FROM dmri/ci-cd:e93dd885 AS base

# Labels
LABEL maintainer="Siddhartha Dhiman ([email protected])"
Expand All @@ -21,13 +21,13 @@ LABEL org.label-schema.vendor="MUSC BRIDGE"
FROM base as dependencies
WORKDIR /src
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN uv pip install -r requirements.txt

FROM dependencies as development
COPY requirements-dev.txt ./
RUN pip install --no-cache-dir -r requirements-dev.txt
RUN uv pip install -rrequirements-dev.txt
COPY . .
RUN pip install --no-cache-dir --no-deps --editable .
RUN uv pip install --no-deps -e.

FROM dependencies as pyc
COPY . .
Expand All @@ -36,7 +36,7 @@ RUN find . -name "*.py" -not -name "__init__.py" -delete

FROM pyc as production
COPY --from=pyc /src .
RUN pip install --no-cache-dir --no-deps --editable .
RUN uv pip install --no-deps -e.

RUN useradd -ms /bin/bash bridge
USER bridge

0 comments on commit 271b9e0

Please sign in to comment.