Skip to content

Instantly share code, notes, and snippets.

View Sampriti-Mitra's full-sized avatar

Sampriti Mitra Sampriti-Mitra

View GitHub Profile
# Build the Go API
FROM golang:latest AS builder
ADD . /app
WORKDIR /app/server
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w" -a -o /main .
# Build the React application
FROM node:alpine AS node_builder
COPY --from=builder /app/frontend ./
RUN npm install
@Sampriti-Mitra
Sampriti-Mitra / main.go
Last active January 28, 2022 09:00
Sample go app using thirdweb
package main
import (
"github.com/ethereum/go-ethereum/ethclient"
"github.com/nftlabs/nftlabs-sdk-go/pkg/nftlabs"
"log"
"math/big"
)
func main() {