update the workflow test
Some checks failed
Test Gitea Secrets / deploy-to-modal (push) Failing after 16s
Some checks failed
Test Gitea Secrets / deploy-to-modal (push) Failing after 16s
This commit is contained in:
@@ -6,17 +6,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Use a standard python image so you don't have to pre-build anything
|
# Use a standard python image so you don't have to pre-build anything
|
||||||
container:
|
container:
|
||||||
image: python:3.12-slim
|
image: gitea-modal-runner:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
|
||||||
apt-get update && apt-get install -y git
|
|
||||||
pip install modal
|
|
||||||
|
|
||||||
- name: Deploy worker pipeline to Modal
|
- name: Deploy worker pipeline to Modal
|
||||||
run: |
|
run: |
|
||||||
cd workspace/sprint_1_2/CODEBASE/deps/implementation
|
cd workspace/sprint_1_2/CODEBASE/deps/implementation
|
||||||
|
|||||||
30
workspace/sprint_1_2/CODEBASE/deps/implementation/Dockerfile
Normal file
30
workspace/sprint_1_2/CODEBASE/deps/implementation/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# --- Stage 1: Builder ---
|
||||||
|
FROM python:3.12-slim AS builder
|
||||||
|
|
||||||
|
# Install build dependencies
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install python dependencies into a local folder
|
||||||
|
RUN pip install --user modal
|
||||||
|
|
||||||
|
# --- Stage 2: Runner ---
|
||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
# Install only the runtime dependencies needed for Gitea Actions
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
git \
|
||||||
|
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
||||||
|
&& apt-get install -y nodejs \
|
||||||
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Copy the installed packages from the builder stage
|
||||||
|
COPY --from=builder /root/.local /root/.local
|
||||||
|
|
||||||
|
# Ensure the local bin is in the PATH
|
||||||
|
ENV PATH=/root/.local/bin:$PATH
|
||||||
|
|
||||||
|
# WORKDIR /workspace
|
||||||
|
CMD [ "bash" ]
|
||||||
Reference in New Issue
Block a user