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
4 changed files with 21 additions and 11 deletions

View File

@ -3,20 +3,25 @@ updates:
- package-ecosystem: "npm" - package-ecosystem: "npm"
directory: "/mobile" directory: "/mobile"
schedule: schedule:
interval: "daily" interval: "weekly"
day: "friday"
- package-ecosystem: "npm" - package-ecosystem: "npm"
directory: "/frontend" directory: "/frontend"
schedule: schedule:
interval: "daily" interval: "weekly"
day: "saturday"
- package-ecosystem: "gradle" - package-ecosystem: "gradle"
directory: "/mobile/android" directory: "/mobile/android"
schedule: schedule:
interval: "daily" interval: "weekly"
day: "monday"
- package-ecosystem: "pip" - package-ecosystem: "pip"
directory: "/" directory: "/"
schedule: schedule:
interval: "daily" interval: "weekly"
day: "sunday"
- package-ecosystem: "bundler" - package-ecosystem: "bundler"
directory: "/docs" directory: "/docs"
schedule: 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 ARG DEBIAN_FRONTEND=noninteractive
RUN mkdir -p /usr/src/robosats RUN mkdir -p /usr/src/robosats
@ -6,8 +6,13 @@ RUN mkdir -p /usr/src/robosats
# specifying the working dir inside the container # specifying the working dir inside the container
WORKDIR /usr/src/robosats WORKDIR /usr/src/robosats
RUN apt-get update RUN apt-get update -qq && \
RUN apt-get install -y postgresql-client apt-get install -qq -y --no-install-recommends \
git \
libpq-dev \
curl \
build-essential \
gnupg2
RUN python -m pip install --upgrade pip 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 current dir's content to container's WORKDIR root i.e. all the contents of the robosats app
COPY . . COPY . .
# install lnd grpc services # install lnd/cln grpc services
RUN sh generate_grpc.sh RUN sh generate_grpc.sh
EXPOSE 8000 EXPOSE 8000

View File

@ -35,7 +35,7 @@ services:
- .:/usr/src/robosats - .:/usr/src/robosats
- ./node/lnd:/lnd - ./node/lnd:/lnd
network_mode: service:tor 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: frontend:
build: ./frontend build: ./frontend

View File

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