From d4d8d955e83a26cf8da6f2b28743d401f50473d4 Mon Sep 17 00:00:00 2001 From: mdefende <mdefende@uab.edu> Date: Mon, 11 Nov 2024 16:12:59 -0600 Subject: [PATCH] general improvements to dockerfile and changing the cmd to the CLI version specified in the package --- Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 87e038d..443aeb8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,15 @@ +# Use the official Python image from the Docker Hub FROM python:3.12-slim -# Set working directory +# Set the working directory in the container WORKDIR /app -# Copy the package files -COPY . . +# Copy the current directory contents into the container at /app +COPY . /app -# Install the package +# Install pak +RUN pip install --upgrade pip RUN pip install . -# Command to run the package (adjust as needed) -CMD ["python", "-c", "from pak.hello import hello; print(hello())"] \ No newline at end of file +# Run hello when the container launches +CMD ["hello"] \ No newline at end of file -- GitLab