Compare commits
2 Commits
7cede099af
...
97ceec1771
Author | SHA1 | Date |
---|---|---|
|
97ceec1771 | |
|
10a81de899 |
|
@ -1,6 +1,7 @@
|
|||
FROM node:22.1.0
|
||||
|
||||
WORKDIR /app
|
||||
RUN apt -y update && apt -y install chromium
|
||||
|
||||
RUN npm install -g npm@latest
|
||||
|
||||
|
@ -9,8 +10,6 @@ RUN npm install -g @angular/cli@^12.0.0
|
|||
COPY . /app
|
||||
RUN npm install
|
||||
|
||||
RUN ng test --watch=false --source-map=false --karma-config=karma.conf.js
|
||||
|
||||
EXPOSE 4200
|
||||
|
||||
CMD ["ng", "serve", "--host", "0.0.0.0", "--disable-host-check"]
|
||||
|
|
|
@ -27,7 +27,13 @@ module.exports = function(config) {
|
|||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadlessNoSandbox'],
|
||||
customLaunchers: {
|
||||
ChromeHeadlessNoSandbox: {
|
||||
base: 'ChromeHeadless',
|
||||
flags: ['--no-sandbox','--disable-setuid-sandbox']
|
||||
}
|
||||
},
|
||||
singleRun: false,
|
||||
restartOnFileChange: true
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue