first intial
This commit is contained in:
14
apps/frontend/Dockerfile
Normal file
14
apps/frontend/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user