-
Notifications
You must be signed in to change notification settings - Fork 807
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lcli Dockerfile and auto-build to CI (#2469)
## Issue Addressed Resolves: #2087 ## Proposed Changes - Add a `Dockerfile` to the `lcli` directory - Add a github actions job to build and push and `lcli` docker image on pushes to `unstable` and `stable` ## Additional Info It's a little awkward but `lcli` requires the full project scope so must be built: - from the `lighthouse` dir with: `docker build -f ./lcli/Dockerflie .` - from the `lcli` dir with: `docker build -f ./Dockerfile ../` Didn't include `libssl-dev` or `ca-certificates`, `lcli` doesn't need these right? Co-authored-by: realbigsean <[email protected]> Co-authored-by: Michael Sproul <[email protected]> Co-authored-by: Michael Sproul <[email protected]>
- Loading branch information
1 parent
9a8320b
commit bcf8ba6
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# `lcli` requires the full project to be in scope, so this should be built either: | ||
# - from the `lighthouse` dir with the command: `docker build -f ./lcli/Dockerflie .` | ||
# - from the current directory with the command: `docker build -f ./Dockerfile ../` | ||
FROM rust:1.53.0 AS builder | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake | ||
COPY . lighthouse | ||
ARG PORTABLE | ||
ENV PORTABLE $PORTABLE | ||
RUN cd lighthouse && make install-lcli | ||
|
||
FROM debian:buster-slim | ||
RUN apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /usr/local/cargo/bin/lcli /usr/local/bin/lcli |