initial commit
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user