Skip to content

Commit

Permalink
Use ENTRYPOINT, but be explicit about the python to call
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed Jul 30, 2023
1 parent 0d3415d commit 29339e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudknot/templates/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ ENV HOME /home/${username}
# Set working directory
WORKDIR /home/${username}

# Set command to run
CMD ["python", "/home/${username}/${script_base_name}"]
# Set entrypoint
ENTRYPOINT ["/usr/bin/python", "/home/${username}/${script_base_name}"]

# Copy the python script
COPY ${script_base_name} /home/${username}/

0 comments on commit 29339e7

Please sign in to comment.