-
Notifications
You must be signed in to change notification settings - Fork 1
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
2 changed files
with
20 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM docker.io/python:3.12.8-bullseye@sha256:37813bbaee14c6653f32a33a2a3e5b331c4000557f7c785cccf29d2df8e0e041 AS base | ||
|
||
USER root | ||
RUN mkdir /safe_data /safe_outputs /scratch | ||
|
||
RUN pip install --user numpy | ||
ADD --chmod=0755 hello-world.py /bin | ||
|
||
ENTRYPOINT ["/bin/hello-world.py"] |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import numpy as np | ||
|
||
def main() -> int: | ||
x = np.array([[1, 2, 3], [4, 5, 6]]) | ||
print(x) | ||
return 0 | ||
|
||
if __name__ == '__main__': | ||
raise SystemExit(main()) |