Skip to content

Commit 52fe8fc

Browse files
path and dependency fixes
1 parent f617541 commit 52fe8fc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/cli/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ WORKDIR /app
1515

1616
# Install only production runtime dependencies
1717
# Note: @walkeros/core is bundled into dist, not needed at runtime
18-
RUN npm install express@^4.21.2 cors@^2.8.5 --omit=dev && \
19-
npm cache clean --force
18+
RUN npm install express@^4.21.2 cors@^2.8.5 chalk --omit=dev && \
19+
npm cache clean --force && \
20+
node -e "const p=require('./package.json'); p.type='module'; require('fs').writeFileSync('package.json', JSON.stringify(p, null, 2))"
2021

2122
# Copy pre-built runtime code
2223
COPY dist/runtime/ ./runtime/
2324

2425
# Create flow directory for mounted bundles
25-
RUN mkdir -p /flow && chown -R walker:walker /app /flow
26+
RUN mkdir -p /app/flow && chown -R walker:walker /app
2627

2728
# Switch to non-root user
2829
USER walker
@@ -31,7 +32,7 @@ USER walker
3132
ENV NODE_ENV=production
3233
ENV MODE=collect
3334
ENV PORT=8080
34-
ENV FILE=/flow/bundle.mjs
35+
ENV FILE=/app/flow/bundle.mjs
3536

3637
# Expose default port
3738
EXPOSE 8080

0 commit comments

Comments
 (0)