providers
## Build stage#FROM node:18.16.0 AS builder#Update packagesRUN apt update# Download Go.RUN wget https://golang.org/dl/go1.20.5.linux-amd64.tar.gz# Extract the Go archive and remove the archive fileRUN tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz \ && rm go1.20.5.linux-amd64.tar.gz# Add Go to the PATHENV PATH="/usr/local/go/bin:${PATH}"# Check Go versionRUN go version# Install `go-swagger`RUN wget https://github.com/go-swagger/go-swagger/releases/download/v0.30.5/swagger_linux_amd64 -O /usr/local/bin/swaggerRUN chmod +x /usr/local/bin/swaggerRUN swagger version# Install PNPMRUN corepack enable && \corepack prepare [email protected] --activateWORKDIR /appCOPY . .ARG NPM_AUTH_TOKENENV NPM_AUTH_TOKEN ${NPM_AUTH_TOKEN}ARG NPM_AUTH_TOKENENV NPM_AUTH_TOKEN ${NPM_AUTH_TOKEN}RUN pnpm installRUN pnpm ui build## Run stage#FROM node:18.16.0 as runnerWORKDIR /app/uiCOPY --from=builder /app/ui .ARG PORTENV PORT=${PORT}EXPOSE ${PORT}ENTRYPOINT ["pnpm","start"]
swagger.json