-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
fe8c23a
commit f6aceca
Showing
6 changed files
with
26 additions
and
94 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
.github/actions/create-concatenated-ui-monorepo-lock/action.yaml
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
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 |
---|---|---|
@@ -1,7 +1,23 @@ | ||
FROM alpine:3.14 | ||
FROM golang:1.20.8 as golang-builder | ||
|
||
COPY infra-server /infra-server | ||
WORKDIR /go/src/github.com/stackrox/infra | ||
|
||
COPY static /etc/infra/static | ||
COPY . . | ||
|
||
RUN make server cli | ||
|
||
FROM node:16.20.2 as ui-builder | ||
|
||
COPY ui ui | ||
|
||
RUN --mount=type=secret,id=npmrc,target=/root/.npmrc make -C ui all | ||
|
||
FROM alpine:3.18.3 as app | ||
|
||
COPY --from=golang-builder /go/src/github.com/stackrox/infra/bin/infra-server-linux-amd64 /infra-server | ||
|
||
COPY --from=ui-builder /ui/build /etc/infra/static | ||
|
||
COPY --from=golang-builder /go/src/github.com/stackrox/infra/bin/infractl-* /etc/infra/static/downloads/ | ||
|
||
ENTRYPOINT ["/infra-server"] |