Skip to content

Commit 2cc025d

Browse files
authored
Add Docker support (#5)
1 parent 0416f85 commit 2cc025d

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Start with Python base image
2+
FROM python:3.12-alpine
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Copy necessary files
8+
COPY SimpleJadePinServer.py index.html oracle_qr.html qrcode.js /app/
9+
10+
# Install dependencies
11+
RUN pip install --no-cache-dir wallycore
12+
13+
# Expose the required port
14+
EXPOSE 4443
15+
16+
# Set the entrypoint to the main command, so additional args can be passed in docker-compose.yml
17+
ENTRYPOINT ["python3", "/app/SimpleJadePinServer.py"]

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ The web interface will be available at http://127.0.0.1:4443
5555

5656
![SimpleJadePinServer web interface](docs/images/webui.png)
5757

58+
Running SimpleJadePinServer with Docker Compose
59+
-----------------------------------------------
60+
61+
Instead of manually installing the dependencies, SimpleJadePinServer can be launched in a Docker container using the provided `docker-compose.yml` file:
62+
63+
```console
64+
docker compose up
65+
```
66+
67+
The web interface will be available at http://127.0.0.1:18080
68+
69+
Note that docker compose will start the server without TLS - use a reverse proxy like Caddy or NGINX if you need to serve from a non-localhost address.
70+
5871
Pointing the Jade to the pin server
5972
-----------------------------------
6073

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
simple_jade_pin_server:
3+
build: .
4+
ports:
5+
- "18080:4443"
6+
volumes:
7+
- ./key_data:/app/key_data
8+
command: ["--no-tls"]

0 commit comments

Comments
 (0)