This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/ethereum/go-ethereum/ethclient" | |
"github.com/nftlabs/nftlabs-sdk-go/pkg/nftlabs" | |
"log" | |
"math/big" | |
) | |
func main() { |