Dockerfile should use dist folder
Some checks failed
gds-mock-mcp Docker Build / build (push) Has been cancelled
Some checks failed
gds-mock-mcp Docker Build / build (push) Has been cancelled
This commit is contained in:
@@ -17,10 +17,7 @@ services:
|
|||||||
start_period: 5s
|
start_period: 5s
|
||||||
networks: [default]
|
networks: [default]
|
||||||
gds-mock-mcp:
|
gds-mock-mcp:
|
||||||
image: gds-mock-mcp:latest
|
image: registry.mortons.site/gds-mock-mcp:latest
|
||||||
depends_on:
|
|
||||||
valkey:
|
|
||||||
condition: service_healthy
|
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- LOG_LEVEL=debug
|
- LOG_LEVEL=debug
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ WORKDIR /app
|
|||||||
COPY --from=builder --chown=gds:gds /app/node_modules ./node_modules
|
COPY --from=builder --chown=gds:gds /app/node_modules ./node_modules
|
||||||
|
|
||||||
# Copy application source
|
# Copy application source
|
||||||
COPY --chown=gds:gds src ./src
|
COPY --chown=gds:gds dist ./dist
|
||||||
COPY --chown=gds:gds package.json ./
|
COPY --chown=gds:gds package.json ./
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
@@ -46,4 +46,4 @@ USER gds
|
|||||||
|
|
||||||
# Start server with dumb-init
|
# Start server with dumb-init
|
||||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||||
CMD ["node", "src/index.js"]
|
CMD ["node", "dist/index.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user