From 72e2d24c671f1367d61beb7634f3d0b25cd65bf0 Mon Sep 17 00:00:00 2001 From: Nils Bergmann Date: Wed, 5 Jan 2022 17:32:30 +0100 Subject: [PATCH] Move AccountManager to submodules --- .gitmodules | 3 +++ docker/AccountManager.Dockerfile | 11 ++++++----- thirdparty/AccountManager | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) create mode 160000 thirdparty/AccountManager diff --git a/.gitmodules b/.gitmodules index 67f142d1..086ee95c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "thirdparty/LUnpack"] path = thirdparty/LUnpack url = https://github.com/Xiphoseer/LUnpack.git +[submodule "thirdparty/AccountManager"] + path = thirdparty/AccountManager + url = https://github.com/DarkflameUniverse/AccountManager diff --git a/docker/AccountManager.Dockerfile b/docker/AccountManager.Dockerfile index ea5cd1d3..dd56e3b9 100644 --- a/docker/AccountManager.Dockerfile +++ b/docker/AccountManager.Dockerfile @@ -1,13 +1,14 @@ # syntax=docker/dockerfile:1 -FROM python:3.9.9-buster +FROM python:3.10-alpine3.14 -WORKDIR /usr/local/share/ -RUN git clone https://github.com/DarkflameUniverse/AccountManager +WORKDIR /usr/local/share/AccountManager + +COPY ./thirdparty/AccountManager . -WORKDIR AccountManager ADD docker/credentials_example.py credentials.py ADD docker/resources_example.py resources.py -RUN pip3 install -r requirements.txt + +RUN apk add libffi-dev build-base --no-cache && pip3 install -r requirements.txt EXPOSE 5000 CMD python3 app.py diff --git a/thirdparty/AccountManager b/thirdparty/AccountManager new file mode 160000 index 00000000..19e2a4fe --- /dev/null +++ b/thirdparty/AccountManager @@ -0,0 +1 @@ +Subproject commit 19e2a4fe9faba8ec2e40162e0019acd711967744