Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa0d3c1

Browse files
core(docker): add Dockerfile
1 parent c5f135d commit fa0d3c1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

‎Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ COPY Model /usr/src/app/Model/
3434
COPY setup.py /usr/src/app/
3535

3636
RUN pip install -e .
37+
38+
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]

‎code_bert/cli/run_pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def run_pipeline(args):
3535
if not Path("Model").exists() or not Path("Model").is_dir():
3636
raise Exception("\n\nEither the Model directory does not exist or it is invalid")
3737

38-
choice = query_yes_no("We believe that the model is at 'Model' directory. Shall we continue?")
38+
# choice = query_yes_no("We believe that the model is at 'Model' directory. Shall we continue?")
39+
choice = True
3940

4041
if choice:
4142
print("Loading model")

‎entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec "$@"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /