Skip to content

Commit a09aacb

Browse files
committed
update dockerignore, dockerfile, persist sessions in volume
1 parent ac4e50b commit a09aacb

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.dockerignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
data/sessions
1+
data/sessions/*
22
static/css

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ EXPOSE 31337
1616
# Define environment variable
1717
#ENV NAME World
1818

19+
VOLUME /app/data
20+
1921
# Run app.py when the container launches
2022
ENTRYPOINT ["python", "kitana.py"]

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Kitana
22
A Plex plugin web frontend
33

4+
# building
5+
docker build --rm --pull -t kitana . && docker tag kitana pannal/kitana:latest && docker push pannal/kitana:latest
46

5-
docker build --rm --pull -t kitana .
6-
docker run --name kitana -d -p 127.0.0.1:31337:31337 pannal/kitana:latest -B 0.0.0.0:31337 -p /kitana -P
7+
# running
8+
docker run --name kitana -v kitana_data:/app/data -d -p 127.0.0.1:31337:31337 pannal/kitana:latest -B 0.0.0.0:31337 -p /kitana -P
9+
10+
# upgrading
11+
docker stop kitana && docker rm kitana && docker pull pannal/kitana:latest
12+
13+
re-run

0 commit comments

Comments
 (0)