Skip to content

Commit

Permalink
feat(docker): build
Browse files Browse the repository at this point in the history
  • Loading branch information
esoadamo committed Nov 10, 2024
1 parent e8656e9 commit 3f152bb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .docker/rewrite.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
server.modules += ( "mod_rewrite" )

url.rewrite-if-not-file = ( "" => "/" )
server.error-handler-404 = "/index.html"
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM rtsp/lighttpd
ADD .docker/rewrite.conf /etc/lighttpd/conf.d/14-rewrite.conf
ADD dist/web-frontend-angular/cs /var/www/html
RUN chown -R lighttpd /var/www/html
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3.8'

services:
ksi-fe-dev-local:
container_name: ksi-fe-dev
image: esoadamo/ksi-fe-local
build: .
ports:
- "4201:80"
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"start.pubdev": "ng serve --configuration pubdev",
"start.proxy": "ng serve --configuration proxy",
"start": "ng serve",
"start.docker": "npm run build.docker && docker-compose up",
"build": "npm run gen.changelog && ng build",
"build.docker": "npm run build && docker-compose build",
"build.pubdev": "npm run gen.changelog && ng build --configuration pubdev",
"build.kyzikos": "npm run gen.changelog && ng build --configuration kyzikos && cp -r src/cgi-bin/ dist/web-frontend-angular/cgi-bin/",
"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/",
Expand Down

0 comments on commit 3f152bb

Please sign in to comment.