Skip to content

Commit 233a49c

Browse files
committed
update: Docker image and config file
1 parent 66cb0e7 commit 233a49c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

dafni/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Define the Python version neded for CTF
2-
FROM python:3.10-slim
2+
FROM python:3.12-slim
33

44
## Prevents Python from writing pyc files
55
ENV PYTHONDONTWRITEBYTECODE=1
@@ -17,14 +17,13 @@ RUN mkdir -p ./data/outputs
1717

1818
# Copy the source code from local root and test files from build into the container
1919
COPY --chown=nobody ./causal_testing ./causal_testing
20-
COPY --chown=nobody ./dafni/src/ ./src
2120
COPY --chown=nobody ./dafni/data/inputs ./data/inputs
2221

2322
# Install core dependencies using PyPi
2423
RUN pip install causal-testing-framework --no-cache-dir
2524

2625
# Set the PYTHONPATH environment variable to include the /src directory
27-
ENV PYTHONPATH="/src:${PYTHONPATH}"
26+
ENV PYTHONPATH="/causal_testing:${PYTHONPATH}"
2827

2928
# Define the entrypoint/commands
30-
CMD python -m main_dafni --dag_path $DAG_PATH --data_path $DATA_PATH --tests_path $TESTS_PATH
29+
CMD python -m causal_testing --dag_path $DAG_PATH --data_path $DATA_PATH --test_config $TESTS_PATH --output $OUTPUT

dafni/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ services:
77
env_file:
88
- .env
99
volumes:
10-
- ./dafni:/usr/src/
10+
- .:/usr/src/

0 commit comments

Comments
 (0)