Skip to content

Commit

Permalink
tweak dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nialexsan committed Feb 9, 2024
1 parent d01b36b commit d47f861
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ RUN go mod download
RUN go mod verify
RUN CGO_ENABLED=0 go build -o evm-gateway ./cmd/server/main.go
RUN chmod a+x evm-gateway

RUN git clone [email protected]:m-Peter/flow-cli-custom-builds.git

# RUN APP
FROM alpine:latest
WORKDIR /flow-evm-gateway
COPY --from=builder /flow-evm-gateway/evm-gateway /flow-evm-gateway/evm-gateway
COPY --from=builder /flow-evm-gateway/flow-cli-custom-builds/flow-x86_64-linux- /flow-evm-gateway/flow-x86_64-linux-
COPY --from=builder /flow-evm-gateway/flow.json /flow-evm-gateway/flow.json
COPY --from=builder /flow-evm-gateway/api/cadence/transactions/create_bridged_account.cdc /flow-evm-gateway/create_bridged_account.cdc
EXPOSE 8888
CMD ["./evm-gateway"]
CMD ./flow-x86_64-linux- emulator --evm-enabled & ./flow-x86_64-linux- transactions send ./create_bridged_account.cdc 1500.0 --network=emulator --signer=emulator-account & ./evm-gateway && wait

0 comments on commit d47f861

Please sign in to comment.