18 lines
454 B
Docker
18 lines
454 B
Docker
# Use the official Node.js 18 image as a parent image
|
|
FROM node:18-alpine
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Install Angular CLI globally
|
|
RUN npm install -g @angular/cli
|
|
|
|
# Add the node modules bin to the PATH for easier command execution
|
|
ENV PATH ./node_modules/.bin:$PATH
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 4200
|
|
|
|
# Command to keep the container running
|
|
CMD ["ng", "serve", "--host", "0.0.0.0", "--disable-host-check"]
|