git init, first commit of angular application.
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user