-
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.
* Add dockerignore file * add dockerfile * Add requirements.txt * Update documentation to use docker
- Loading branch information
1 parent
b62138c
commit 910c6ca
Showing
4 changed files
with
35 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,3 @@ | ||
.git | ||
.gitignore | ||
.github |
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,22 @@ | ||
FROM cgr.dev/chainguard/python:latest-dev as builder | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt . | ||
RUN pip install --user -r requirements.txt \ | ||
&& rm -rf /home/nonroot/.cache/pip | ||
|
||
FROM cgr.dev/chainguard/python:latest | ||
|
||
ARG APP=/var/opt/app/ | ||
WORKDIR $APP | ||
|
||
# Make sure you update Python version in path | ||
#COPY --from=builder /home/nonroot/.local/lib/python3.12/site-packages /home/nonroot/.local/lib/python3.12/site-packages | ||
COPY --from=builder /home/nonroot/.local /home/nonroot/.local | ||
|
||
COPY number_anomaly_detector.py $APP/ | ||
COPY test-numbers.txt $APP/ | ||
|
||
CMD ["python", "/var/opt/app/number_anomaly_detector.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
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,2 @@ | ||
zat | ||
pyod |