init code
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
# DEB
|
||||
FROM golang:1.22 AS deps
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
# BUILD
|
||||
FROM deps AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
WORKDIR /app/cmd/tele
|
||||
RUN go build -o tele
|
||||
|
||||
# RUN IMAGE
|
||||
FROM gcr.io/distroless/base
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/cmd/tele/tele .
|
||||
|
||||
CMD ["./tele"]
|
||||
Reference in New Issue
Block a user