Skip to content

Commit 3f152bb

Browse files
committed
feat(docker): build
1 parent e8656e9 commit 3f152bb

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.docker/rewrite.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
server.modules += ( "mod_rewrite" )
2+
3+
url.rewrite-if-not-file = ( "" => "/" )
4+
server.error-handler-404 = "/index.html"

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM rtsp/lighttpd
2+
ADD .docker/rewrite.conf /etc/lighttpd/conf.d/14-rewrite.conf
3+
ADD dist/web-frontend-angular/cs /var/www/html
4+
RUN chown -R lighttpd /var/www/html

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3.8'
2+
3+
services:
4+
ksi-fe-dev-local:
5+
container_name: ksi-fe-dev
6+
image: esoadamo/ksi-fe-local
7+
build: .
8+
ports:
9+
- "4201:80"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"start.pubdev": "ng serve --configuration pubdev",
77
"start.proxy": "ng serve --configuration proxy",
88
"start": "ng serve",
9+
"start.docker": "npm run build.docker && docker-compose up",
910
"build": "npm run gen.changelog && ng build",
11+
"build.docker": "npm run build && docker-compose build",
1012
"build.pubdev": "npm run gen.changelog && ng build --configuration pubdev",
1113
"build.kyzikos": "npm run gen.changelog && ng build --configuration kyzikos && cp -r src/cgi-bin/ dist/web-frontend-angular/cgi-bin/",
1214
"build.kleobis": "npm run gen.changelog && ng build --configuration kleobis && cp src/matomo/kleobis.js dist/web-frontend-angular/*/assets/scripts/matomo.js && cp -r src/cgi-bin/ dist/web-frontend-angular/cgi-bin/",

0 commit comments

Comments
 (0)