-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 809 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (25 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Standalone Dockerfile for ActionsGuard
# For use outside of GitHub Actions
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# Download Scorecard binary
RUN curl -L -o /usr/local/bin/scorecard https://github.com/ossf/scorecard/releases/latest/download/scorecard_linux_amd64 \
&& chmod +x /usr/local/bin/scorecard
# Set working directory
WORKDIR /app
# Copy application files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY actionsguard ./actionsguard
COPY setup.py pyproject.toml README.md ./
# Install ActionsGuard
RUN pip install --no-cache-dir -e .
# Create reports directory
RUN mkdir /reports
WORKDIR /workspace
ENTRYPOINT ["actionsguard"]
CMD ["--help"]