Bump to python 3.11, optimize Coordinator image size, update dependabot config

This commit is contained in:
Reckless_Satoshi 2023-05-01 04:38:36 -07:00
parent 4d35798a6f
commit 222b4f9fff
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
4 changed files with 21 additions and 11 deletions

View File

@ -3,20 +3,25 @@ updates:
- package-ecosystem: "npm"
directory: "/mobile"
schedule:
interval: "daily"
interval: "weekly"
day: "friday"
- package-ecosystem: "npm"
directory: "/frontend"
schedule:
interval: "daily"
interval: "weekly"
day: "saturday"
- package-ecosystem: "gradle"
directory: "/mobile/android"
schedule:
interval: "daily"
interval: "weekly"
day: "monday"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
day: "sunday"
- package-ecosystem: "bundler"
directory: "/docs"
schedule:
interval: "daily"
interval: "monthly"
day: "tuesday"

View File

@ -1,4 +1,4 @@
FROM python:3.10.2-bullseye
FROM python:3.11.3-slim-bullseye
ARG DEBIAN_FRONTEND=noninteractive
RUN mkdir -p /usr/src/robosats
@ -6,8 +6,13 @@ RUN mkdir -p /usr/src/robosats
# specifying the working dir inside the container
WORKDIR /usr/src/robosats
RUN apt-get update
RUN apt-get install -y postgresql-client
RUN apt-get update -qq && \
apt-get install -qq -y --no-install-recommends \
git \
libpq-dev \
curl \
build-essential \
gnupg2
RUN python -m pip install --upgrade pip
@ -17,7 +22,7 @@ RUN pip install --no-cache-dir -r requirements.txt
# copy current dir's content to container's WORKDIR root i.e. all the contents of the robosats app
COPY . .
# install lnd grpc services
# install lnd/cln grpc services
RUN sh generate_grpc.sh
EXPOSE 8000

View File

@ -35,7 +35,7 @@ services:
- .:/usr/src/robosats
- ./node/lnd:/lnd
network_mode: service:tor
command: python3 -u manage.py runserver 0.0.0.0:8000
command: python3 -Wa -u manage.py runserver 0.0.0.0:8000
frontend:
build: ./frontend

View File

@ -13,7 +13,7 @@ celery==5.2.7
grpcio==1.54.0
googleapis-common-protos==1.59.0
grpcio-tools==1.54.0
numpy==1.22.2
numpy==1.24.3
Pillow==9.5.0
python-decouple==3.5
requests==2.22.0