Skip to content
Snippets Groups Projects
Commit d4d8d955 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

general improvements to dockerfile and changing the cmd to the CLI version specified in the package

parent 8fb6cbe2
No related branches found
No related tags found
No related merge requests found
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment