Skip to content

Commit

Permalink
Docker Fixes (FuelLabs#1543)
Browse files Browse the repository at this point in the history
* fix: add missing Docker container dependency

* fix: publish Docker image as "forc" and not "sway"

* fix: add default Docker image command

Co-authored-by: Mohammad Fawaz <[email protected]>
  • Loading branch information
AlicanC and mohammadfawaz authored May 25, 2022
1 parent dac1b96 commit 9f5ad17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -525,13 +525,16 @@ jobs:
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/fuellabs/sway
ghcr.io/fuellabs/forc
tags: |
type=sha
type=ref,event=branch
type=ref,event=tag
flavor: |
latest=${{ github.ref == 'refs/heads/master' }}
labels: |
org.opencontainers.image.title=forc
org.opencontainers.image.description=Fuel Orchestrator.
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
Expand Down
5 changes: 4 additions & 1 deletion deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ FROM ubuntu:20.04 as run

RUN apt-get update && \
apt-get install -y --no-install-recommends \
libssl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /root/

COPY --from=builder /build/target/release/forc .
COPY --from=builder /build/target/release/forc .

CMD ["exec", "./forc"]

0 comments on commit 9f5ad17

Please sign in to comment.