Skip to content

Commit f6a18ba

Browse files
committed
Replace ADD comand with COPY in a DOCKER file
1 parent 615bf2d commit f6a18ba

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

container-image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ENV PATH="/miniconda/envs/${CONDA_ENV_NAME}}/bin:$PATH"
2424
RUN conda init bash && source ~/.bashrc && conda activate ${CONDA_ENV_NAME}
2525

2626
RUN mkdir ${MLFLOW_DIR}
27-
ADD ${CONTAINER_ARTIFACT_DIR}/run ${MLFLOW_DIR}/
27+
COPY ${CONTAINER_ARTIFACT_DIR}/run/* ${MLFLOW_DIR}/
2828
RUN chmod a+x ${MLFLOW_DIR}/launch_mlflow.sh
2929

3030
ENV MLFLOW_DIR=${MLFLOW_DIR}

container-image/run/run.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ def launch_mlflow():
126126
# It is better to pass extra args through environment variables.
127127
# More info - https://mlflow.org/docs/latest/cli.html#mlflow-server
128128
cmd_split = shlex.split(mlflow_cmd_option)
129-
130-
print("*"*50)
131-
print([MLFLOW_LAUNCH_SCRIPT] + cmd_split)
132-
print("*"*50)
133129
subprocess.run(
134130
[MLFLOW_LAUNCH_SCRIPT] + cmd_split, # capture_output=True
135131
)

0 commit comments

Comments
 (0)