File tree 2 files changed +37
-1
lines changed 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:latest as base
2
+
3
+ RUN apk add --update --no-cache python3 python3-dev py3-pip
4
+
5
+ FROM base as builder
6
+
7
+ ENV POETRY_NO_INTERACTION=1 \
8
+ POETRY_VIRTUALENVS_IN_PROJECT=1 \
9
+ POETRY_VIRTUALENVS_CREATE=1 \
10
+ POETRY_CACHE_DIR=/tmp/poetry_cache
11
+
12
+ RUN apk update && \
13
+ apk add musl-dev build-base gcc gfortran openblas-dev
14
+
15
+ WORKDIR /app
16
+
17
+ # Install Poetry
18
+ RUN apk add pipx
19
+ RUN pipx install poetry
20
+ ENV PATH="/root/.local/bin:${PATH}"
21
+ # Install the app
22
+ COPY pyproject.toml poetry.lock ./
23
+ RUN poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR;
24
+
25
+
26
+ #FROM base as runtime
27
+
28
+ #COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
29
+
30
+ #COPY src ./src
31
+ #COPY main.py ./main.py
32
+ #WORKDIR /app/src
33
+
34
+ #ENTRYPOINT ["poetry", "run", "python", "main.py"]
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ async def panel(self):
216
216
try :
217
217
if port == 25565 :
218
218
server = JavaServer .lookup (ip , 3 )
219
- logger .warn (ip )
219
+ # logger.warn(ip)
220
220
else :
221
221
server = JavaServer .lookup (f"{ ip } :{ port } " , 3 )
222
222
status = await server .async_status ()
@@ -254,6 +254,8 @@ async def panel(self):
254
254
ax .plot (a , b , "#6bf414" )
255
255
ax .set_ylabel ("Player Count" )
256
256
ax .set_xlabel ("Last 10 minutes" )
257
+ plt .yt
258
+ ax .set_ylim (bottom = 0 )
257
259
buf = io .BytesIO ()
258
260
259
261
plt .savefig (buf , format = "PNG" )
You can’t perform that action at this time.
0 commit comments