-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also build backend-executor image on GHCR
- Loading branch information
1 parent
2923375
commit 54d6da6
Showing
2 changed files
with
7 additions
and
7 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 |
---|---|---|
@@ -1,17 +1,11 @@ | ||
# Use the official Python image from the Docker Hub | ||
FROM python:3.12-alpine | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install uv | ||
|
||
# Set the working directory in the container | ||
WORKDIR /backend-executor | ||
|
||
# Copy the current directory contents into the container at /backend-executor | ||
COPY . /backend-executor | ||
|
||
# Sync the uv (assuming it's a Python package) | ||
RUN uv sync | ||
|
||
# Activate the virtual environment and run the application | ||
CMD ["sh", "-c", "source .venv/bin/activate && python3 src/main.py"] | ||
CMD ["sh", "-c", "source .venv/bin/activate && python3 src/main.py"] |