-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
34 lines (23 loc) · 905 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ARG VERSION=latest
FROM golang:1.22 as builder
WORKDIR /windup-shim
COPY go.mod /windup-shim
COPY go.sum /windup-shim
COPY pkg /windup-shim/pkg
COPY main.go /windup-shim
RUN go build -o windup-shim main.go
FROM quay.io/konveyor/analyzer-lsp:${VERSION} as analyzer-lsp
# This is the container built from the Dockerfile in the analyzer-lsp project
FROM quay.io/konveyor/java-external-provider:${VERSION}
# TODO debug only
RUN microdnf install -y procps vim wget unzip git
RUN git clone https://github.com/konveyor-ecosystem/windup-rulesets.git -b konveyor /windup-rulesets
COPY --from=builder /windup-shim/windup-shim /usr/bin/windup-shim
COPY --from=analyzer-lsp /usr/local/bin/konveyor-analyzer /usr/local/bin/konveyor-analyzer
WORKDIR /windup-shim
# For debugging
COPY go.mod /windup-shim
COPY go.sum /windup-shim
COPY pkg /windup-shim/pkg
COPY main.go /windup-shim
ENTRYPOINT ["windup-shim"]