Skip to content

Commit fe91de6

Browse files
Add workaround
1 parent c1d2881 commit fe91de6

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

angular/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
FROM node:14 as node
33
WORKDIR /app
44
COPY . .
5+
# This is a workaround to avoid updating the file appconfig.production.json.
6+
# If you prefer updating appconfig.production.json yourself delete this line.
7+
RUN mv ./src/assets/appconfig.container.json ./src/assets/appconfig.production.json
58
RUN yarn install
69
RUN yarn run ng build --configuration production
710
# stage 2
811
FROM nginx
912
COPY --from=node /app/dist /usr/share/nginx/html
10-
# This is a workaround to avoid updating the file outside the container.
11-
RUN sed -i "s/https/http/g" /usr/share/nginx/html/assets/appconfig.production.json
1213
COPY fast-nginx-default.conf /etc/nginx/conf.d/default.conf
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"remoteServiceBaseUrl": "http://localhost:44311",
3+
"appBaseUrl": "http://localhost:4200",
4+
"localeMappings": [
5+
{
6+
"from": "pt-BR",
7+
"to": "pt"
8+
},
9+
{
10+
"from": "zh-CN",
11+
"to": "zh"
12+
},
13+
{
14+
"from": "he-IL",
15+
"to": "he"
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)