File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : BuildDocker
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build-docker :
8+ permissions : write-all
9+ name : Deploy Docker image
10+ runs-on : ubuntu-22.04
11+ steps :
12+ # Actually build the Docker container
13+ - uses : actions/checkout@v3
14+ - uses : docker/setup-buildx-action@v1
15+ - name : GHCR Log-in
16+ uses : docker/login-action@v1
17+ with :
18+ registry : ghcr.io
19+ username : ${{ github.actor }}
20+ password : ${{ secrets.GITHUB_TOKEN }}
21+ - name : Build and push
22+ uses : docker/build-push-action@v2
23+ with :
24+ context : .
25+ file : Container/Dockerfile
26+ push : true
27+ # JUNGVI: If you operate from a fork and want to build a new docker make sure to replace 'pulp-platform' by your uname.
28+ tags : ghcr.io/pulp-platform/deepquant:main
Original file line number Diff line number Diff line change 1+ FROM python:3.11-slim
2+
3+ RUN apt-get update && apt-get install -y --no-install-recommends \
4+ build-essential \
5+ git \
6+ curl \
7+ ca-certificates \
8+ && rm -rf /var/lib/apt/lists/*
9+
10+ WORKDIR /app
11+
12+ COPY pyproject.toml .
13+
14+ RUN pip install --upgrade pip setuptools wheel
15+ RUN pip install .
You can’t perform that action at this time.
0 commit comments