Docker fixes.

This commit is contained in:
Andrey Egorov 2024-07-22 18:38:40 +03:00
parent 08fee63dca
commit 05fd6a213c
2 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,10 @@
FROM golang:1.19
FROM golang:1.22.5
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /docker-modem-test main.go
RUN CGO_ENABLED=0 GOOS=linux go build -o /modem-test main.go
CMD ["/modem-test"]

View File

@ -4,8 +4,8 @@ build:
#run: build
# @./out/annalist.exe
linux:
@$Env:GOOS="linux"; $Env:GOARCH="arm"; $Env:GOARM=5
#linux:
# @$Env:GOOS="linux"; $Env:GOARCH="arm"; $Env:GOARM=5
# .profile
# cgo_enabled 0