initial commit
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
ci / docker (push) Successful in 37s

This commit is contained in:
2024-09-24 20:37:36 +02:00
commit c4130bb601
5 changed files with 67 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
#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"]