-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 575 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 575 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Use an official Node.js runtime as the base image
FROM node:latest
# Set the working directory inside the container
WORKDIR /app
# Set environment variable for Docker
ENV DOCKER=true
# Copy package.json and package-lock.json to the container
COPY package*.json ./
# Install project dependencies
RUN npm install --legacy-peer-deps
# Disable Angular CLI analytics
ENV NG_CLI_ANALYTICS=false
# Copy the rest of the application code to the container
COPY . .
# Expose the default Angular port
EXPOSE 4200
# Command to start the Angular app
CMD ["npm", "run", "start"]