Skip to content

Commit

Permalink
✨ make analyzer-lsp available in windows container (#590)
Browse files Browse the repository at this point in the history
Signed-off-by: David Zager <[email protected]>
  • Loading branch information
djzager authored Apr 25, 2024
1 parent 33a0b9c commit a3c11b1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM golang:1.19-windowsservercore-ltsc2022 as builder
WORKDIR /analyzer-lsp

COPY cmd /analyzer-lsp/cmd
COPY engine /analyzer-lsp/engine
COPY event /analyzer-lsp/event
COPY output /analyzer-lsp/output
COPY jsonrpc2 /analyzer-lsp/jsonrpc2
COPY jsonrpc2_v2 /analyzer-lsp/jsonrpc2_v2
COPY lsp /analyzer-lsp/lsp
COPY parser /analyzer-lsp/parser
COPY provider /analyzer-lsp/provider
COPY tracing /analyzer-lsp/tracing
COPY external-providers /analyzer-lsp/external-providers
COPY go.mod /analyzer-lsp/go.mod
COPY go.sum /analyzer-lsp/go.sum

RUN go build -o konveyor-analyzer.exe ./cmd/analyzer/main.go

FROM mcr.microsoft.com/windows/servercore:ltsc2022

# Set the working directory inside the container
WORKDIR C:/app

# Copy the executable from the builder stage
COPY --from=builder /analyzer-lsp/konveyor-analyzer.exe .

# Command to run the executable
ENTRYPOINT ["konveyor-analyzer.exe"]

0 comments on commit a3c11b1

Please sign in to comment.