Skip to content

Commit d72120f

Browse files
committed
intial v1
0 parents  commit d72120f

55 files changed

Lines changed: 16745 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
__pycache__/
2+
*.pyc
3+
*.pyo
4+
*.pyd
5+
.pytest_cache/
6+
data/
7+
secrets/
8+
tests/

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
__pycache__/
2+
*.pyc
3+
*.pyo
4+
*.pyd
5+
.pytest_cache/
6+
data/
7+
secrets/
8+
config.toml

Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM python:3.11-slim
2+
3+
RUN apt-get update \
4+
&& apt-get install -y --no-install-recommends \
5+
ca-certificates \
6+
curl \
7+
mosquitto \
8+
openssl \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
RUN mkdir -p /opt/acme.sh \
12+
&& curl -fsSL https://github.com/acmesh-official/acme.sh/archive/refs/heads/master.tar.gz \
13+
| tar -xz --strip-components=1 -C /opt/acme.sh \
14+
&& chmod +x /opt/acme.sh/acme.sh \
15+
&& ln -sf /opt/acme.sh/acme.sh /usr/local/bin/acme.sh
16+
17+
WORKDIR /app
18+
19+
COPY . /app
20+
21+
RUN pip install --no-cache-dir "/app[mitm]"
22+
23+
EXPOSE 443 8883 8081 51820/udp
24+
25+
CMD ["roborock-local-server", "serve", "--config", "/app/config.toml"]

0 commit comments

Comments
 (0)