-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Till Wegmueller <[email protected]>
- Loading branch information
1 parent
a02012e
commit b14431a
Showing
5 changed files
with
25 additions
and
4 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 |
---|---|---|
|
@@ -20,6 +20,8 @@ jobs: | |
uses: metalbear-co/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Prisma generate | ||
run: cargo prisma generate | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
|
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
File renamed without changes.
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,19 @@ | ||
FROM cgr.dev/chainguard/rust:latest-dev as build | ||
ARG PACKAGE | ||
USER root | ||
RUN apk update && apk add --no-cache --update-cache pkgconf openssl openssl-dev | ||
WORKDIR /app | ||
ADD . . | ||
RUN chown -R nonroot /app | ||
USER nonroot | ||
RUN cargo build --release --bin domainservd | ||
|
||
FROM cgr.dev/chainguard/wolfi-base | ||
ARG PACKAGE | ||
USER root | ||
#RUN adduser -D nonroot | ||
RUN apk update && apk add --no-cache --update-cache openssl libgcc | ||
USER nonroot | ||
COPY --from=build --chown=nonroot:nonroot /app/target/release/${PACKAGE} /usr/local/bin/${PACKAGE} | ||
ENV PACKAGE=${PACKAGE} | ||
ENTRYPOINT "/usr/local/bin/${PACKAGE}" |
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