Skip to content

Commit 621211a

Browse files
miyunarimihaimaruseac
authored andcommitted
container: use model_signing as entrypoint
Signed-off-by: Janine Olear <[email protected]>
1 parent 4ae7821 commit 621211a

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

Containerfile

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,6 @@ COPY src ./src
2323

2424
RUN python -m pip install model_signing
2525

26-
RUN echo '#!/bin/bash\n\
27-
cd "/src" && python sign.py "$@"' > /usr/local/bin/sign
28-
29-
RUN echo '#!/bin/bash\n\
30-
cd "/src" && python verify.py "$@"' > /usr/local/bin/verify
31-
32-
RUN echo '#!/bin/bash\n\
33-
echo "Usage:"\n\
34-
echo " verify - Runs the verify.py Python script"\n\
35-
echo " sign - Runs the sign.py Python script"\n\
36-
echo " help - Displays this help message"' > /usr/local/bin/help
37-
38-
RUN chmod +x /usr/local/bin/sign /usr/local/bin/verify /usr/local/bin/help
39-
40-
CMD ["help"]
26+
ENTRYPOINT ["/usr/local/bin/model_signing"]
4127

28+
CMD ["--help"]

0 commit comments

Comments
 (0)