User Ajusta este dockerfile para usar nvm, instalar la version 16.20.2 usar esa version…
- User
User Ajusta este dockerfile para usar nvm, instalar la version 16.20.2 usar esa version e instalar la versión 11 de angular antes de npm install
Stage 1: Compile and Build angular codebase
Use official node image as the base image
FROM node:16.20.2 as build
Set the working directory
WORKDIR /usr/local/app
Add the source code to app
COPY ./ /usr/local/app/
Install all the dependencies
RUN npm install
Generate the build of the application
RUN npm run build
Stage 2: Serve app with nginx server
Use official nginx image as the base image
FROM nginx:latest
Copy the build output to replace the default nginx contents.
COPY --from=build /usr/local/app/dist /usr/share/nginx/html
Expose port 80
EXPOSE 80
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.