Skip to content

Commit

Permalink
chore: add an initial dockerfile declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed May 24, 2024
1 parent 2dc3ead commit 3a7c6e2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 3a7c6e2

Please sign in to comment.