Skip to content

Commit

Permalink
chore: add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
krhougs committed Oct 25, 2022
1 parent ba067f8 commit e849007
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
context: .
file: ./Dockerfile
push: true
build_args:
revision: ${{ PROJECT_GIT_REVISION }}
tags: |
phalanetwork/service-network:git-${{ github.sha }}
phalanetwork/service-network:latest
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ COPY --from=builder /app/target/release/service_broker /usr/local/bin
LABEL org.opencontainers.image.source=https://github.com/Phala-Network/service-network
LABEL org.opencontainers.image.description="Phala Service Network"

ARG revision=dev

RUN useradd -m -u 1000 -U -s /bin/sh -d /app app && \
ldd /usr/local/bin/service_worker && \
ldd /usr/local/bin/service_broker

USER app
ENV RUST_LOG="service_network=debug,service_broker=debug,service_worker=debug"
ENV PROJECT_GIT_REVISION=$revision

0 comments on commit e849007

Please sign in to comment.