-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
43 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM node:16.15.0 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y curl | ||
|
||
# RUN curl -sL https://deb.nodesource.com/setup_16.x | bash | ||
|
||
RUN apt-get install -y nodejs | ||
|
||
COPY package.json /app/ | ||
COPY package-lock.json /app/ | ||
|
||
WORKDIR /app/ | ||
|
||
RUN npm install | ||
|
||
COPY . /app/ | ||
|
||
# environment.prod.ts will be used on server to provide backend url, however, staging requires dev url | ||
RUN cp -f /app/src/environments/environment.development.ts /app/src/environments/environment.ts | ||
|
||
# RUN NODE_OPTIONS="--max-old-space-size=16384" | ||
|
||
RUN npm run build -- --prod --base-href=/caddie/ --output-path=./dist/caddie | ||
|
||
RUN cp -r /app/dist/caddie/* /usr/share/nginx/html/ | ||
|
||
COPY nginx/default.conf /etc/nginx/conf.d/ | ||
COPY nginx/htpasswd /etc/nginx/htpasswd | ||
|
||
EXPOSE 4200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const environment = { | ||
production: true, | ||
backend: 'https://prototypes.cosy.bio/api-caddie_dev/', | ||
}; |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/environments/environment.uhh.prod.ts → src/environments/environment.production.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const environment = { | ||
production: true, | ||
backend: 'https://apps.cosy.bio/api-caddie/', | ||
backend: 'https://cosy.bio/api-caddie/', | ||
}; |