chore: use git+https SDK dependency, drop proto codegen from prod build

This commit is contained in:
2026-08-17 14:13:57 +08:00
parent ae0e920b18
commit f2718c6c14
4 changed files with 4 additions and 16 deletions
-12
View File
@@ -5,19 +5,7 @@ WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm install
RUN apk add --no-cache protobuf
COPY frontend ./
COPY proto /app/proto
RUN mkdir -p /app/frontend/src/gen
RUN protoc -I /app/proto \
--plugin=protoc-gen-es=/app/frontend/node_modules/.bin/protoc-gen-es \
--plugin=protoc-gen-connect-es=/app/frontend/node_modules/.bin/protoc-gen-connect-es \
--es_out=/app/frontend/src/gen --es_opt=target=js,import_extension=.js \
--connect-es_out=/app/frontend/src/gen --connect-es_opt=target=js,import_extension=.js \
/app/proto/yoresee_doc/v1/yoresee_doc.proto
RUN npm run build