File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 2
2
FROM node:14 as node
3
3
WORKDIR /app
4
4
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
5
8
RUN yarn install
6
9
RUN yarn run ng build --configuration production
7
10
# stage 2
8
11
FROM nginx
9
12
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
12
13
COPY fast-nginx-default.conf /etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments