Skip to content

Commit

Permalink
WIP: Add Dockerfile
Browse files Browse the repository at this point in the history
This is prep for iterating on ostreedev#12
  • Loading branch information
cgwalters committed Sep 15, 2021
1 parent 7a4a2e0 commit ab072f7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM quay.io/coreos-assembler/fcos-buildroot:testing-devel as builder
RUN yum -y --enablerepo=updates-testing update ostree-devel
WORKDIR /build
COPY . .
RUN cargo build --release

FROM registry.fedoraproject.org/fedora:34
RUN yum -y install ostree && yum clean all
COPY --from=builder /build/target/release/ostree-ext-cli /usr/bin/ostree-ext
4 changes: 4 additions & 0 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Use this to quickly generate a new container image
# overriding the binaries from the local build.
FROM localhost/ostree-ext
COPY /src/target/debug/ostree-ext-cli /usr/bin/ostree-ext

0 comments on commit ab072f7

Please sign in to comment.