Skip to content

Commit

Permalink
Don't add test file to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
pritchyspritch committed May 15, 2024
1 parent 6ecce99 commit 92d9350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ COPY --chown=1000:1000 yaml-templates/technical_asset_template.yaml /app/yaml-te
COPY --chown=1000:1000 yaml-templates/threagile-example-model-template.yaml /app/yaml-templates
COPY --chown=1000:1000 yaml-templates/risks_template.yaml /app/yaml-templates

COPY --chown=1000:1000 test-data.json /app/

ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python

Expand Down
3 changes: 2 additions & 1 deletion dfe_threagile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

def temp_file_read() -> list:
data_list = []
file = open("test-data.json", "r")
# temp
file = open("/app/work/test-data.json", "r")
lines = file.readlines()

for line in lines:
Expand Down

0 comments on commit 92d9350

Please sign in to comment.