mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-06 21:54:01 -05:00
fix(docker): resolve @sim/logger module not found in realtime container (#2637)
This commit is contained in:
@@ -18,9 +18,10 @@ COPY packages/testing/package.json ./packages/testing/package.json
|
|||||||
COPY packages/logger/package.json ./packages/logger/package.json
|
COPY packages/logger/package.json ./packages/logger/package.json
|
||||||
COPY packages/tsconfig/package.json ./packages/tsconfig/package.json
|
COPY packages/tsconfig/package.json ./packages/tsconfig/package.json
|
||||||
|
|
||||||
# Install dependencies with cache mount for faster builds
|
# Install dependencies with hoisted layout for Docker compatibility
|
||||||
|
# Using --linker=hoisted to avoid .bun directory symlinks that don't copy between stages
|
||||||
RUN --mount=type=cache,id=bun-cache,target=/root/.bun/install/cache \
|
RUN --mount=type=cache,id=bun-cache,target=/root/.bun/install/cache \
|
||||||
bun install --omit=dev --ignore-scripts
|
bun install --omit=dev --ignore-scripts --linker=hoisted
|
||||||
|
|
||||||
# ========================================
|
# ========================================
|
||||||
# Builder Stage: Prepare source code
|
# Builder Stage: Prepare source code
|
||||||
|
|||||||
@@ -141,6 +141,10 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 443
|
port: 443
|
||||||
|
# Allow custom egress rules
|
||||||
|
{{- with .Values.networkPolicy.egress }}
|
||||||
|
{{- toYaml . | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.postgresql.enabled }}
|
{{- if .Values.postgresql.enabled }}
|
||||||
|
|||||||
Reference in New Issue
Block a user