Skip to content

Commit

Permalink
Merge branch 'main' into dark-mode-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
awlx authored Sep 18, 2023
2 parents 6f0cc13 + d48d6e1 commit de47045
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.4-bullseye AS builder
FROM python:3.11.5-bullseye AS builder

RUN apt-get update && apt-get install -y apt-transport-https curl gnupg \
&& curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >/usr/share/keyrings/bazel-archive-keyring.gpg \
Expand All @@ -15,7 +15,7 @@ RUN ["bazel", "build", "//wgkex/broker:app"]
RUN ["bazel", "build", "//wgkex/worker:app"]
RUN ["cp", "-rL", "bazel-bin", "bazel"]

FROM python:3.11.3-bullseye
FROM python:3.11.5-bullseye
WORKDIR /wgkex

COPY --from=builder /wgkex/bazel /wgkex/
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ flask-mqtt
pyroute2
PyYAML
Flask
waitress

# Common
ipaddress
Expand Down
1 change: 1 addition & 0 deletions wgkex/broker/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ py_binary(
deps=[
requirement("flask"),
requirement("flask-mqtt"),
requirement("waitress"),
"//wgkex/config:config",
],
)
3 changes: 2 additions & 1 deletion wgkex/broker/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from flask_mqtt import Mqtt
import paho.mqtt.client as mqtt_client

from waitress import serve
from wgkex.config import config
from wgkex.common import logger

Expand Down Expand Up @@ -168,4 +169,4 @@ def is_valid_domain(domain: str) -> str:
listen_host = listen_config.get("host")
listen_port = listen_config.get("port")

app.run(host=listen_host, port=listen_port)
serve(app, host=listen_host, port=listen_port)

0 comments on commit de47045

Please sign in to comment.