Skip to content

Commit

Permalink
testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dhosterman committed Aug 12, 2024
1 parent bed7ee4 commit bf761c3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: ci

on:
push:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/user/app:latest
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Base Stage
FROM python:3.10-slim AS base

ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1

RUN apt-get update \
&& apt-get install -y \
gcc \
libffi-dev \
g++ \
git

WORKDIR /app

# Final Stage
FROM base AS final

RUN ["pip", "install", "git+https://github.com/mlcommons/modelbench.git"]

ENTRYPOINT ["modelbench", "benchmark", "-m", "1"]

0 comments on commit bf761c3

Please sign in to comment.