Tambah Dockerfile (nginx) dan README untuk deploy Coolify
Dockerfile menyajikan Dashboard_Pemetaan_CPMK.html sebagai index.html di root. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
# Dashboard static single-page (tanpa backend) disajikan di root "/"
|
||||||
|
COPY Dashboard_Pemetaan_CPMK.html /usr/share/nginx/html/index.html
|
||||||
|
|
||||||
|
# Target routing / health check Coolify
|
||||||
|
EXPOSE 80
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
# OBE-Mapping — Dashboard Pemetaan CPMK
|
||||||
|
|
||||||
|
Dashboard interaktif **one-page** untuk pemetaan capaian pembelajaran Kurikulum OBE
|
||||||
|
**Prodi Informatika (S-1) · Fakultas Teknik · Universitas Tanjungpura**.
|
||||||
|
|
||||||
|
Sumber data: `Dokumen_9_RPS_Rumusan_Pemetaan_CPMK.docx` (BAB IX — RPS).
|
||||||
|
|
||||||
|
## Isi data
|
||||||
|
|
||||||
|
| Entitas | Jumlah |
|
||||||
|
|-----------|--------|
|
||||||
|
| CPL | 10 |
|
||||||
|
| CPMK | 34 |
|
||||||
|
| Mata Kuliah | 49 |
|
||||||
|
| Sub-CPMK | 549 |
|
||||||
|
|
||||||
|
## Fitur
|
||||||
|
|
||||||
|
- **Kartu ringkasan (KPI)** — total CPL / CPMK / MK / Sub-CPMK.
|
||||||
|
- **Diagram alur Sankey** CPL → CPMK → MK (SVG murni, offline).
|
||||||
|
- **Matriks pemetaan MK × CPL** interaktif (filter, sorot kolom).
|
||||||
|
- **Explorer bertingkat** CPL → CPMK → Sub-CPMK.
|
||||||
|
- **Pencarian Mata Kuliah** + modal detail CPMK & Sub-CPMK.
|
||||||
|
- **Analisis cakupan & deteksi celah** pemetaan.
|
||||||
|
- **Linked highlighting** lintas panel, **pencarian global**, **mode terang/gelap**,
|
||||||
|
**ekspor CSV/PDF**, **deep-link** (URL hash).
|
||||||
|
|
||||||
|
Seluruh data ter-_embed_ di dalam `Dashboard_Pemetaan_CPMK.html` — **berjalan tanpa internet**
|
||||||
|
dan tanpa server backend.
|
||||||
|
|
||||||
|
## Struktur repo
|
||||||
|
|
||||||
|
```
|
||||||
|
Dashboard_Pemetaan_CPMK.html # dashboard (file utama, semua data ter-embed)
|
||||||
|
Dockerfile # nginx menyajikan dashboard di "/"
|
||||||
|
README.md
|
||||||
|
```
|
||||||
|
|
||||||
|
## Deploy via Coolify
|
||||||
|
|
||||||
|
1. **New Resource → Application** dari repo Git ini (`OBE-Mapping`, branch `main`).
|
||||||
|
2. **Build Pack: Dockerfile** (otomatis terdeteksi dari `Dockerfile` di root).
|
||||||
|
3. **Port: 80**.
|
||||||
|
4. Set **Domain** sesuai kebutuhan, lalu **Deploy**.
|
||||||
|
|
||||||
|
Setiap `git push` ke `main` akan memicu rebuild & redeploy otomatis bila webhook Coolify aktif.
|
||||||
|
|
||||||
|
### Alternatif (tanpa Dockerfile)
|
||||||
|
|
||||||
|
Coolify juga bisa pakai **Static Site** build pack: salin/rename file menjadi `index.html`
|
||||||
|
dan arahkan _publish directory_ ke root repo.
|
||||||
|
|
||||||
|
## Pengembangan lokal
|
||||||
|
|
||||||
|
Cukup buka `Dashboard_Pemetaan_CPMK.html` langsung di browser, atau jalankan server statis:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python -m http.server 8080
|
||||||
|
# buka http://localhost:8080/Dashboard_Pemetaan_CPMK.html
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user