12 lines
124 B
Docker
12 lines
124 B
Docker
|
FROM golang:1.22.7-alpine
|
||
|
|
||
|
RUN mkdir -p /app
|
||
|
|
||
|
WORKDIR /app
|
||
|
ADD . /app
|
||
|
|
||
|
RUN go mod tidy
|
||
|
RUN go build -o app .
|
||
|
|
||
|
CMD ["./app"]
|