-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(feat): add python support * chore: add docker build for python base image * chore: fix run.sh missing if block
- Loading branch information
Showing
5 changed files
with
63 additions
and
13 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 @@ | ||
FROM python:3.9-slim |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM py-base | ||
|
||
WORKDIR /app | ||
|
||
# Copy requirements.txt if it exists | ||
COPY requirements.txt* ./ | ||
# Install pytest and any other requirements | ||
RUN pip install pytest \ | ||
&& if [ -f "requirements.txt" ]; then pip install -r requirements.txt; fi | ||
|
||
# Copy the application code and tests | ||
COPY . . | ||
|
||
# Make the run script executable | ||
RUN chmod +x /app/.hxckr/run.sh | ||
|
||
CMD ["/app/.hxckr/run.sh"] |