Skip to content

Commit

Permalink
Merge pull request #36 from BouyguesTelecom/fix/startup
Browse files Browse the repository at this point in the history
🐛 Fix Mesh startup
  • Loading branch information
arnaud authored Sep 10, 2024
2 parents f690042 + 23eaad5 commit fe9a07d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
8 changes: 5 additions & 3 deletions packages/graphql-mesh/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:18-alpine AS builder
# BUILD
FROM node:18-slim AS builder

WORKDIR /build

Expand All @@ -7,12 +8,12 @@ ADD local-pkg ./local-pkg
ADD patches ./patches
ADD .npmrc ./
RUN npm ci --omit=dev --omit=optional --omit=peer
RUN rm -rf node_modules/uWebSockets.js/*.node
RUN cd node_modules/typescript/lib && rm -rf cs de es fr it ja ko pl pt-br ru tr zh-cn zh-tw
COPY . ./
RUN rm ./config.yaml

FROM node:18-alpine AS runner
# RUN
FROM node:18-slim AS runner

LABEL org.opencontainers.image.description="GraphQL Mesh Gateway"
LABEL org.opencontainers.image.vendor="Bouygues Telecom"
Expand All @@ -26,6 +27,7 @@ ENV ENDPOINT=$ENDPOINT
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
ENV TS_NODE_FILES=true
ENV TS_NODE_TRANSPILE_ONLY=true
ENV UWS_HTTP_MAX_HEADERS_SIZE=8000

VOLUME /app/plugins
VOLUME /app/resolvers
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-mesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"build": "npm run downloadswaggers && mesh build",
"downloadswaggers": "NODE_TLS_REJECT_UNAUTHORIZED='0' sucrase-node ./scripts/download-sources.ts",
"postinstall": "patch-package",
"serve": "npm run build && sucrase-node serve.ts",
"serve": "npm run build && mesh start",
"start": "npm run downloadswaggers && mesh dev",
"test": "vitest"
},
Expand Down
11 changes: 0 additions & 11 deletions packages/graphql-mesh/serve.ts

This file was deleted.

0 comments on commit fe9a07d

Please sign in to comment.