-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
venv | ||
* | ||
!src/isar_robot | ||
!setup.py | ||
!setup.cfg | ||
!pyproject.toml | ||
!README.md | ||
!LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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-robot.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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel", | ||
"setuptools_scm>=6.2" | ||
] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] |