File tree Expand file tree Collapse file tree 3 files changed +62
-1
lines changed Expand file tree Collapse file tree 3 files changed +62
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM node:20
2
+
3
+ WORKDIR /app
4
+
5
+ COPY package*.json ./
6
+
7
+ RUN npm install
8
+
9
+ COPY . .
10
+
11
+ RUN npm run build
12
+
13
+ EXPOSE 4000
14
+
15
+ CMD ["npm" , "run" , "serve" ]
Original file line number Diff line number Diff line change
1
+ user www-data;
2
+ worker_processes auto;
3
+ pid /run/nginx.pid;
4
+ include /etc/nginx/modules-enabled/*.conf;
5
+
6
+ events {
7
+ worker_connections 768 ;
8
+ }
9
+
10
+ http {
11
+ sendfile on ;
12
+ tcp_nopush on ;
13
+ tcp_nodelay on ;
14
+ keepalive_timeout 65 ;
15
+ types_hash_max_size 2048 ;
16
+ include /etc/nginx/mime.types;
17
+ default_type application/octet-stream;
18
+
19
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
20
+ ssl_prefer_server_ciphers on ;
21
+
22
+ access_log /var/log/nginx/access.log;
23
+ error_log /var/log/nginx/error.log;
24
+
25
+ gzip on ;
26
+
27
+ include /etc/nginx/conf.d/*.conf;
28
+
29
+ server {
30
+ listen 80 default_server ;
31
+ listen [::]:80 default_server ;
32
+ root /var/www/html;
33
+ index index.html index.htm index.nginx-debian.html;
34
+
35
+ server_name _;
36
+
37
+ location / {
38
+ try_files $uri $uri / =404 ;
39
+ }
40
+
41
+ }
42
+
43
+ }
44
+
Original file line number Diff line number Diff line change 11
11
"test:headless" : " ng test --watch=false --browsers=ChromeHeadless" ,
12
12
"coverage" : " ng test --no-watch --code-coverage" ,
13
13
"lint" : " ng lint" ,
14
- "serve" : " node server.js"
14
+ "serve" : " node server.js" ,
15
+ "docker:build" : " docker build -t frontend-angular ." ,
16
+ "docker:run" : " docker run -p 4000:4000 frontend-angular"
15
17
},
16
18
"private" : true ,
17
19
"dependencies" : {
You can’t perform that action at this time.
0 commit comments