fix(ci): lowercase Docker image name in CI workflow and optimize Dockerfile layer creation
This commit is contained in:
1 parent
82138fff61
commit
2b93ebe0a1
3 files changed
+10
-7
No files matched your search
+4
-5
@@ -15,14 +15,13 @@ WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Copy installed production node_modules from builder
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --chown=bun:bun --from=builder /app/node_modules ./node_modules
|
||||
|
||||
# Copy application configuration and source code
|
||||
COPY package.json tsconfig.json ./
|
||||
COPY src ./src
|
||||
COPY --chown=bun:bun package.json tsconfig.json ./
|
||||
COPY --chown=bun:bun src ./src
|
||||
|
||||
# Set ownership and drop root privileges
|
||||
RUN chown -R bun:bun /app
|
||||
# Drop root privileges
|
||||
USER bun
|
||||
|
||||
# Standard MCP stdio communication
|
||||
|
||||
Reference in new issue
Block a user