From 3a7c6e221201b58ccd9ddb2c91fd275cb3d7f11b Mon Sep 17 00:00:00 2001 From: Joao Duarte Date: Fri, 24 May 2024 11:45:44 -0400 Subject: [PATCH] chore: add an initial dockerfile declaration --- .github/workflows/docker.yml | 22 ++++++++++++++++++++++ Dockerfile | 8 ++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/docker.yml create mode 100644 Dockerfile diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..9c25f5d --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,22 @@ +on: [push] + +name: Docker + +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: false + tags: generic-merge:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0ed6cbc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM rust:1.78.0-slim-bullseye AS build + +WORKDIR /usr/src/generic-merge + +COPY . . +RUN cargo build --locked --release + +CMD ["./target/release/generic-merge"] \ No newline at end of file