Unverified Commit b4843381 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Go Compilation

Go Compilation
parents 67fa36f4 86904005
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
FROM golang:1.20 AS builder
FROM golang AS builder

COPY serial/ /src/serial/
WORKDIR /src/serial

RUN go get -d -v golang.org/x/net/html
RUN go get -d -v github.com/gorilla/mux
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /src/serial/main .

FROM debian:bookworm-slim
+1 −0
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@ module vdsm-serial

go 1.20

require github.com/gorilla/mux v1.8.0
+2 −1
Original line number Diff line number Diff line
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
+3 −3
Original line number Diff line number Diff line
package main

import (
	"bytes"
	"encoding/binary"
	"flag"
	"fmt"
	"log"
	"net"
	"flag"
	"bytes"
	"strconv"
	"net/http"
	"math/rand"
	"encoding/binary"
	"github.com/gorilla/mux"
)