mastering bridging

This commit is contained in:
gigihshs
2025-11-24 09:13:08 +07:00
commit e1b99f8f38
115 changed files with 12298 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# Build stage
FROM golang:1.21 AS build-env
ENV GO111MODULE=on
# Set /app as the working directory
WORKDIR /app
# Copy all files to /app
COPY . .
COPY .env .env
# Install dependencies
RUN go mod download && go mod verify
RUN go mod tidy -v
# Build the Go application
RUN CGO_ENABLED=0 GOOS=linux go build -v -installsuffix cgo -o app cmd/main.go
# final
FROM ubuntu:20.04
RUN apt-get update -y
RUN apt-get -y install wget
COPY --from=build-env /app/app .
EXPOSE 8080
# Define the command to run the application
CMD ["./app"]