docker
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal 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" ]
|
Reference in New Issue
Block a user