diff --git a/Dockerfile.Isar b/Dockerfile.Isar index b921f64..ebcdb23 100644 --- a/Dockerfile.Isar +++ b/Dockerfile.Isar @@ -1,10 +1,11 @@ -FROM ghcr.io/equinor/isar:latest +FROM python:3.10-slim as builder -ARG ROBOT_REPOSITORY_CLONE_URL=https://github.com/equinor/isar-turtlebot.git +RUN python -m venv --copies /opt/venv +ENV PATH="/opt/venv/bin:$PATH" -RUN pip install git+${ROBOT_REPOSITORY_CLONE_URL}@main +COPY . . +RUN pip install . -RUN useradd -ms /bin/bash --uid 1001 isar -RUN chown -R 1001 /app -RUN chmod 755 /app -USER 1001 +FROM ghcr.io/equinor/isar:latest +COPY --from=builder /opt/venv /opt/venv +ENV PATH="/opt/venv/bin:$PATH"