-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from block-bites/staging
Staging
- Loading branch information
Showing
72 changed files
with
37,547 additions
and
37,321 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 was deleted.
Oops, something went wrong.
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,36 @@ | ||
FROM --platform=linux/amd64 rust:buster as builder | ||
|
||
WORKDIR /usr/src/myapp | ||
|
||
COPY api/Cargo.toml ./ | ||
COPY api/Rocket.toml ./ | ||
|
||
RUN mkdir src && \ | ||
echo "fn main() {}" > src/main.rs && \ | ||
cargo build --release && \ | ||
rm -rf src | ||
|
||
COPY api/src ./src | ||
|
||
RUN cargo build --release | ||
|
||
FROM commondrum/cctl-fondant:latest | ||
|
||
USER root | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y nginx && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /usr/local/bin | ||
|
||
COPY --from=builder /usr/src/myapp/target/release/api ./ | ||
COPY api/src/commands.json ./ | ||
|
||
RUN chmod -R +x /home/cctl | ||
|
||
ENTRYPOINT ["/usr/local/bin/api"] | ||
|
||
EXPOSE 3001 80 | ||
|
||
CMD ["tail", "-f", "/dev/null"] |
Oops, something went wrong.