actions_test/Dockerfile
enve 63bb3aa4db
All checks were successful
ci / docker (push) Successful in 39s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
test
2024-09-27 20:53:49 +02:00

16 lines
313 B
Docker

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