actions_test/Dockerfile
enve c4130bb601
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
ci / docker (push) Successful in 37s
initial commit
2024-09-24 20:37:36 +02:00

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"]