Go compilation

This commit is contained in:
Kroese 2023-04-23 19:38:37 +02:00 committed by GitHub
parent 66bb73e644
commit e57acd37f4

View File

@ -1,10 +1,9 @@
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