Skip to content

Commit 0e8b66d

Browse files
authored
Rust web client (#74)
1 parent 4925c5c commit 0e8b66d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+7638
-20182
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ tmp
1010
__debug_*
1111

1212
node_modules
13-
target
13+
/services/core/blueprint/web-client/target/release/*
14+
/services/core/blueprint/web-client/target/wasm32-unknown-unknown/*
1415
main
1516
dist
1617

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ ARG GO_VERSION=1.23
22
ARG ALPINE_VERSION=3.18
33

44
# Build web client (if needed)
5-
FROM node:18 AS web-client-builder
6-
WORKDIR /web
5+
# FROM node:18 AS web-client-builder
6+
# WORKDIR /web
77

8-
ARG DOMAIN
9-
ARG SERVICE
8+
# ARG DOMAIN
9+
# ARG SERVICE
1010

1111
# Install node modules
12-
COPY ./services/${DOMAIN}/${SERVICE}/web-client/package*.json .
13-
RUN npm install
12+
# COPY ./services/${DOMAIN}/${SERVICE}/web-client/package*.json .
13+
# RUN npm install
1414

1515
# Build dist
16-
COPY ./services/${DOMAIN}/${SERVICE}/web-client .
17-
ENV NODE_ENV=production
18-
RUN npm run build
16+
# COPY ./services/${DOMAIN}/${SERVICE}/web-client .
17+
# ENV NODE_ENV=production
18+
# RUN npm run build
1919

2020
# Make sure dist directory exists even if there's no client to build
21-
RUN mkdir -p ./dist
21+
# RUN mkdir -p ./dist
2222

2323
# Build final binary
2424
FROM golang:${GO_VERSION}-alpine AS go-builder
@@ -40,7 +40,7 @@ go mod verify
4040

4141
# Copy over code
4242
COPY ./services/${DOMAIN}/${SERVICE} .
43-
COPY --from=web-client-builder /web/dist ./web-client/dist
43+
# COPY --from=web-client-builder /web/dist ./web-client/dist
4444

4545
# Run tests
4646
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \

0 commit comments

Comments
 (0)