fp/packages/helloworld/Dockerfile
Chris Grimmett 0fd947c78f
Some checks failed
ci / build (push) Failing after 26s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
add gitea ci
2024-03-28 23:28:02 -08:00

20 lines
413 B
Docker

# Base Image
FROM golang:latest
# Set the Current Working Directory inside the container
WORKDIR /app
# Copy everything from the current directory to the PWD(Present Working Directory) inside the container
COPY . .
# Download all the dependencies
RUN go mod download
# Build the Go app
RUN go build -o main .
# Expose port 8080 to the outside world
EXPOSE 8080
# Command to run the executable
CMD ["./main"]