We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c18e3b commit 5cac387Copy full SHA for 5cac387
src/dockerizers/angular/tests/default/code/dockerizer/Dockerfile
@@ -1,25 +1,14 @@
1
# Use official node image as the base image
2
FROM node:latest as build
3
-
4
-# Set the working directory
5
WORKDIR /app
6
7
-# Add the source code to app
8
-COPY . .
9
10
-# Install all the dependencies
+COPY package*.json ./
11
RUN npm install
12
13
-# Generate the build of the application
+COPY . .
14
RUN npm run build
15
16
17
# Use official nginx image as the base image
18
FROM nginx:latest
19
20
-# Copy the build output to replace the default nginx contents.
21
COPY --from=build /app/dist/angular-test /usr/share/nginx/html
22
23
-# Expose port 80
24
EXPOSE 80
25
CMD ["nginx", "-g", "daemon off;"]
0 commit comments