Files
saas/apps/frontend/Dockerfile
AHMET YILMAZ 6e7a8c784b
Some checks failed
CI Pipeline / Lint & Test Frontend (push) Has been cancelled
CI Pipeline / Test Backend (push) Has been cancelled
first intial
2025-09-16 22:59:46 +08:00

15 lines
450 B
Docker

FROM node:18-alpine
# Set the working directory in the container
WORKDIR /app
# Copy the package.json and lock files from the monorepo root
COPY package*.json ./
# Install all dependencies for the entire monorepo
RUN npm install
# The command to start the dev server for the 'frontend' app
# The 'host' flag is set to '0.0.0.0' to allow external connections (from the host machine)
CMD ["npx", "nx", "run", "frontend:serve", "--host", "0.0.0.0"]