16 lines
202 B
Docker
16 lines
202 B
Docker
|
# syntax=docker/dockerfile:1
|
||
|
|
||
|
FROM golang:1.20
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY go.mod go.sum .
|
||
|
|
||
|
RUN go mod download
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/uabot
|
||
|
|
||
|
ENTRYPOINT ["/app/entrypoint.sh"]
|