CompUGE-Bench / Dockerfile
Ahmad Shallouf
initialize
1bc149f
raw
history blame
492 Bytes
FROM node:lts
# Set the working directory
WORKDIR /usr/src/app
# Install Angular CLI globally
RUN npm install -g @angular/cli
# Copy package.json and package-lock.json first to leverage Docker cache
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose port
EXPOSE 4200
# Set entrypoint for different environments
ENTRYPOINT bash -c "ng serve --host 0.0.0.0 --port 4200 --configuration=production --disable-host-check;"