Skip to content

Commit

Permalink
also build backend-executor image on GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Oct 17, 2024
1 parent 2923375 commit 54d6da6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-gcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
docker build -t ghcr.io/${{ github.repository }}/gh-updater:latest -f gh-updater.dockerfile .
docker push ghcr.io/${{ github.repository }}/gh-updater:latest
- name: Build and push gh-updater image
run: |
cd backend-executor
docker build -t ghcr.io/${{ github.repository }}/executor:latest -f Dockerfile .
docker push ghcr.io/${{ github.repository }}/executor:latest
- name: Build and push frontend image
run: |
cd frontend
Expand Down
8 changes: 1 addition & 7 deletions backend-executor/Dockerfile
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"]

0 comments on commit 54d6da6

Please sign in to comment.