-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
80 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
target/ | ||
dockerfiles/ | ||
.dockerignore | ||
*.tar.gz |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,23 @@ | ||
FROM rust:bullseye as build | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y ca-certificates pkg-config libssl-dev libclang-11-dev libunwind-dev libunwind8 curl gnupg | ||
RUN rustup update 1.77.1 && rustup default 1.77.1 | ||
|
||
RUN mkdir /out | ||
COPY ./Cargo.toml /app/Cargo.toml | ||
COPY ./Cargo.lock /app/Cargo.lock | ||
COPY ./src /app/src | ||
COPY ./migrations /app/migrations | ||
|
||
RUN cargo build --features release --release | ||
RUN cp /app/target/release/runehook /out | ||
|
||
FROM debian:bullseye-slim | ||
|
||
COPY --from=build /out/runehook /bin/runehook | ||
|
||
WORKDIR /workspace | ||
|
||
ENTRYPOINT ["runehook"] |
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,14 @@ | ||
FROM node:18-alpine | ||
|
||
WORKDIR /app | ||
COPY ./api /app | ||
COPY .git /app/.git | ||
|
||
RUN apk add --no-cache --virtual .build-deps git | ||
RUN npm ci --no-audit && \ | ||
npm run build && \ | ||
npm run generate:git-info && \ | ||
npm prune --production | ||
RUN apk del .build-deps | ||
|
||
CMD ["node", "./dist/src/index.js"] |
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