trying somethign else
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
FROM golang:1.21 AS builder
|
FROM golang AS builder
|
||||||
COPY / /app
|
COPY / /app
|
||||||
|
|
||||||
WORKDIR /app/cmd
|
WORKDIR /app/cmd
|
||||||
RUN CGO_ENABLED=1 GOOS=linux go build -o main
|
RUN CGO_ENABLED=1 GOOS=linux go build -o main
|
||||||
|
|
||||||
FROM alpine:latest AS production
|
FROM alpine:latest AS production
|
||||||
COPY --from=builder /app/cmd/main .
|
COPY --from=builder /app/cmd .
|
||||||
CMD ["./main"]
|
CMD ["./main"]
|
||||||
|
|||||||
Reference in New Issue
Block a user