diff --git a/sdk/tests/ts-api/Dockerfile b/sdk/tests/ts-api/Dockerfile index 58b876e09..b5ab206d9 100644 --- a/sdk/tests/ts-api/Dockerfile +++ b/sdk/tests/ts-api/Dockerfile @@ -55,9 +55,7 @@ COPY --from=builder --chown=apiuser:nodejs /app/node_modules ./node_modules # Set working directory to the API WORKDIR /app/sdk/tests/ts-api -# Set environment and user -ENV NODE_ENV=production -ENV PORT=3000 + USER apiuser EXPOSE 3000 diff --git a/sdk/tests/ts-api/docker-build.sh b/sdk/tests/ts-api/docker-build.sh deleted file mode 100755 index 3e9accd18..000000000 --- a/sdk/tests/ts-api/docker-build.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Build the TypeScript API Docker image -# This script should be run from the monorepo root - -set -e - -echo " Building TypeScript API Docker image..." - -# Check if we're in the monorepo root -if [ ! -f "package.json" ] || [ ! -d "sdk/tests/ts-api" ]; then - echo " Error: This script must be run from the monorepo root" - echo "Please run: cd ../../../ && ./sdk/tests/ts-api/docker-build.sh" - exit 1 -fi - -# Build the Docker image -docker build -f sdk/tests/ts-api/Dockerfile -t selfxyz-ts-api:latest . - -echo " Docker image 'selfxyz-ts-api:latest' built successfully!" -echo "" -echo "To run the container:" -echo " docker run -p 3000:3000 selfxyz-ts-api:latest" -echo "" -echo "Or use docker-compose:" -echo " cd sdk/tests/ts-api && docker-compose up"