forked from konveyor/analyzer-lsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.windows
29 lines (23 loc) · 892 Bytes
/
Dockerfile.windows
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
FROM golang:1.20-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"]