From 0c8f07288ebb78c4378be70e8e8efffee4541076 Mon Sep 17 00:00:00 2001 From: mw Date: Mon, 30 Oct 2023 18:41:27 +0900 Subject: [PATCH 1/2] Add simple dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..8061499ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM python:3.10-slim + +# Set the working directory in docker +WORKDIR /pokemon + +# Install system dependencies +RUN apt-get update && apt-get install -y \ + build-essential \ + git && \ + # Clean up apt cache to reduce image size. + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Install Python dependencies +COPY baselines/requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the rest of the application code + +# Command to run at container start +CMD [ "python", "./baselines/run_baseline_parallel.py" ] From 462a44aceb967e2ec35766fb0c9e3fa25fecfccd Mon Sep 17 00:00:00 2001 From: mw Date: Mon, 30 Oct 2023 18:51:11 +0900 Subject: [PATCH 2/2] Fix path to training script --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8061499ff..697764310 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,11 +11,11 @@ RUN apt-get update && apt-get install -y \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -# Install Python dependencies -COPY baselines/requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +# Copy source-code +COPY . . -# Copy the rest of the application code +# Install Python dependencies +RUN pip install --no-cache-dir -r baselines/requirements.txt # Command to run at container start -CMD [ "python", "./baselines/run_baseline_parallel.py" ] +CMD [ "python", "baselines/run_baseline_parallel.py" ]