FROM node:18-alpine3.18 as webui RUN npm config set registry https://registry.npmmirror.com COPY ./webui . RUN npm install && npm run build FROM images.local/golang:latest WORKDIR /app COPY . /app COPY --from=0 dist /app/webui/dist RUN go mod tidy && go build . EXPOSE 38080 ENTRYPOINT [ "./pastebin", "api" ]