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 WORKDIR /app
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY *.go ./ 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 #run: build
# @./out/annalist.exe # @./out/annalist.exe
linux: #linux:
@$Env:GOOS="linux"; $Env:GOARCH="arm"; $Env:GOARM=5 # @$Env:GOOS="linux"; $Env:GOARCH="arm"; $Env:GOARM=5
# .profile # .profile
# cgo_enabled 0 # cgo_enabled 0