File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,15 @@ RUN yarn global add @angular/cli@latest
14
14
# RUN npm install @angular/cli@latest -g
15
15
16
16
# install packages
17
- # RUN yarn add
18
17
RUN yarn install
19
18
20
- #for npm
19
+ # FOR NPM
21
20
# npm install
22
21
23
22
# SET ENVIRONMENT VARIABLES
24
- ENV environment=production
23
+ ENV ENVIRONMENT=production1
24
+ ENV SomeAPIKey="This is not an API Key"
25
+ ENV SomeOtherAPIKey="This is not another API Key"
25
26
26
27
# Build Angular Application in Production
27
28
RUN ng build --prod
@@ -34,6 +35,7 @@ FROM nginx:alpine
34
35
VOLUME /var/cache/nginx
35
36
36
37
# Copy the build files from the project
38
+ # replace "angular-docker-environment-variables" with your angular project name
37
39
COPY --from=builder /app/dist/angular-docker-environment-variables /usr/share/nginx/html
38
40
39
41
# Copy Nginx Files
You can’t perform that action at this time.
0 commit comments