-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from DireLines/main
feat: runpodctl project build
- Loading branch information
Showing
7 changed files
with
156 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# AUTOGENERATED Dockerfile using runpodctl project build | ||
|
||
# Base image -> https://github.com/runpod/containers/blob/main/official-templates/base/Dockerfile | ||
# DockerHub -> https://hub.docker.com/r/runpod/base/tags | ||
FROM <<BASE_IMAGE>> | ||
|
||
# The base image comes with many system dependencies pre-installed to help you get started quickly. | ||
# Please refer to the base image's Dockerfile for more information before adding additional dependencies. | ||
# IMPORTANT: The base image overrides the default huggingface cache location. | ||
|
||
# System dependencies | ||
# if you need additional system dependencies beyond those included in the base image, feel free to add them here | ||
# but be aware those changes will not be reflected in the development pod | ||
# unless you override the base image in runpod.toml to an image that includes them. | ||
|
||
# Python dependencies | ||
COPY <<REQUIREMENTS_PATH>> /requirements.txt | ||
RUN python<<PYTHON_VERSION>> -m pip install --upgrade pip && \ | ||
python<<PYTHON_VERSION>> -m pip install --upgrade -r /requirements.txt --no-cache-dir && \ | ||
rm /requirements.txt | ||
|
||
# NOTE: The base image comes with multiple Python versions pre-installed. | ||
# It is recommended to specify the version of Python when running your code. | ||
|
||
# Add src files (Worker Template) | ||
ADD src . | ||
<<SET_ENV_VARS>> | ||
CMD python<<PYTHON_VERSION>> -u <<HANDLER_PATH>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Similar to .gitignore | ||
# Matches will not be synce to the development pod or cause the development pod to reload. | ||
|
||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Similar to .gitignore | ||
# Matches will not be synce to the development pod or cause the development pod to reload. | ||
|
||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.PHONY: proto | ||
|
||
dev: | ||
env GOOS=windows GOARCH=amd64 go build -ldflags "-X 'main.Version=1.0.0'" -o bin/runpodctl.exe . | ||
env GOOS=darwin GOARCH=arm64 go build -ldflags "-X 'main.Version=1.0.0'" -o bin/runpodctl . | ||
lint: | ||
golangci-lint run |