16 lines
334 B
Docker
16 lines
334 B
Docker
#Build the Go Binary.
|
|
FROM golang:1.22 as build_actions_test
|
|
ENV CGO_ENABLED 0
|
|
|
|
# Copy the source code into the container.
|
|
COPY . /service
|
|
|
|
# Build the actions_test binary.
|
|
WORKDIR /service
|
|
RUN go build
|
|
|
|
# Run the Go Binary in Alpine.
|
|
FROM alpine:3.20
|
|
COPY --from=build_actions_test /service/ /app/
|
|
WORKDIR /app
|
|
CMD ["./actions_test"] |