mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
21 lines
595 B
Docker
21 lines
595 B
Docker
FROM registry.access.redhat.com/ubi8/ubi:latest as jsbuild
|
|
|
|
WORKDIR /jssrc
|
|
COPY pkg/lib/editor .
|
|
RUN yum install -y nodejs && \
|
|
npm install --ignore-engines && \
|
|
npm run build
|
|
|
|
FROM golang:1.24.8-alpine3.22
|
|
|
|
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* && mkdir /usr/local/share/ca-certificates/extra
|
|
WORKDIR /go/src/config-tool
|
|
COPY . .
|
|
RUN rm -rf /go/src/config-tool/pkg/lib/editor/static/build
|
|
COPY --from=jsbuild /jssrc/static/build /go/src/config-tool/pkg/lib/editor/static/build
|
|
|
|
RUN go get -d -v ./...
|
|
RUN go install -v ./...
|
|
|
|
ENTRYPOINT [ "config-tool" ]
|