forked from Alexey/DAS_2024_1
15 lines
180 B
Docker
15 lines
180 B
Docker
|
FROM golang:1.23-alpine
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY go.mod go.sum ./
|
||
|
RUN go mod download
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN go build -o message_main ./cmd/message_main.go
|
||
|
|
||
|
EXPOSE 8080
|
||
|
|
||
|
CMD ["./message_main"]
|