This commit is contained in:
2023-12-21 01:11:22 +03:00
parent 89046d130c
commit 96b7e49fa2
4 changed files with 72 additions and 23 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM registry.home.4it.me/golang:1.21 as builder
LABEL maintainer="dilap54 <dilap54@mail.ru>"
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make build
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app/
COPY migrations ./migrations
COPY ./categories.json ./
COPY --from=builder /app/cli ./
ENTRYPOINT [ "./cli" ]