Skip to content

Commit b3c6c04

Browse files
committed
Refactor Docker configuration: remove build context from docker-compose.yml and add dev-docker-compose.yml for development setup
1 parent 319376d commit b3c6c04

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

dev-docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
services:
2+
webuntis-timetable:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
container_name: webuntis-timetable
7+
environment:
8+
- NODE_ENV=production
9+
- PORT=7464
10+
- CONFIG_FILE=/app/config.json
11+
volumes:
12+
- ./dev-config.json:/app/config.json:ro
13+
ports:
14+
- "7464:7464"
15+
restart: unless-stopped

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
services:
22
webuntis-timetable:
3-
build:
4-
context: .
5-
dockerfile: Dockerfile
3+
image: nlion/ics-webuntis:latest
64
container_name: webuntis-timetable
75
environment:
86
- NODE_ENV=production

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"dependencies": {
1111
"express": "^5.1.0",
1212
"ical-generator": "^9.0.0",
13-
"ics": "^3.8.1",
1413
"webuntis": "^2.2.1"
1514
},
1615
"devDependencies": {

0 commit comments

Comments
 (0)