Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CICD Example
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RC Data Science
community-containers
CICD Example
Commits
d4d8d955
Commit
d4d8d955
authored
6 months ago
by
Matthew K Defenderfer
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+8
-6
8 additions, 6 deletions
Dockerfile
with
8 additions
and
6 deletions
Dockerfile
+
8
−
6
View file @
d4d8d955
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment