-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile for portal-hive development
- Loading branch information
1 parent
69a1a98
commit 7b0c883
Showing
3 changed files
with
44 additions
and
0 deletions.
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,26 @@ | ||
FROM debian:stable-slim as build | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive TZ="Etc/UTC" | ||
ENV NPROC=2 | ||
|
||
RUN apt update \ | ||
&& apt install make bash build-essential git -y \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
COPY ../../ /fluffy | ||
|
||
WORKDIR /fluffy | ||
|
||
RUN --mount=type=cache,target=/fluffy/vendor \ | ||
make deps -j${NPROC} | ||
|
||
RUN --mount=type=cache,target=/fluffy/vendor <<EOF | ||
set -e | ||
make fluffy -j${NPROC} | ||
cp /fluffy/build/fluffy /usr/local/bin/fluffy | ||
EOF | ||
|
||
FROM debian:stable-slim as app | ||
|
||
COPY --from=build /usr/local/bin/fluffy /usr/local/bin/fluffy |
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,3 @@ | ||
vendor/ | ||
build/ | ||
.git/ |