Skip to content

Commit a73d6fa

Browse files
committed
Add docker build flow
1 parent 1a93301 commit a73d6fa

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/BuildDocker.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

Container/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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 .

0 commit comments

Comments
 (0)