From 955177cac606158ba94c2867548049d1f79d7bb3 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 11 Aug 2025 19:07:34 +0100 Subject: [PATCH] Fixed the ownership of the app in the container --- src/Dockerfile | 1 + src/Makefile | 6 ++++++ src/TODO.md | 7 +++---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index da26c63..e3b4b39 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -8,6 +8,7 @@ RUN apk --no-cache add bash zsh git go \ RUN mkdir /usr/share/webapps/ COPY ./build/expensesweb/ /usr/share/webapps/expensesweb +RUN chown -R esilva:esilva /usr/share/webapps/expensesweb EXPOSE 8081 diff --git a/src/Makefile b/src/Makefile index 8ec0658..c4e748c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,5 +18,11 @@ build_release_alpine: build_image: docker buildx build -t $(registry)/$(repo)/expensesweb:$(tag) . +launch_container: + docker run \ + -p 8081:8081 \ + -v ./data/data.db:/usr/share/webapps/expensesweb/data/data.db \ + -it $(registry)/$(repo)/expensesweb:$(tag) zsh + push_image: docker push $(registry)/$(repo)/expensesweb:$(tag) diff --git a/src/TODO.md b/src/TODO.md index a7d0eb7..86e9f3b 100644 --- a/src/TODO.md +++ b/src/TODO.md @@ -3,17 +3,16 @@ used - [ ] Multiple categories per expense - [X] Make all the other items update/create page be like expenses -- [ ] Make working with the DB better, yo - [ ] Ability to attach a document to an expense - [ ] Debts table - [ ] Ability to export data in multiple formats and with a selection of columns - [ ] Migrate every column named "ExpenseSomething" to "ExpSomething" - [ ] Make the models just return errors and not do any handling themselves -- [ ] Reduce the size of the font file +- [X] Reduce the size of the font file - [X] Add some migration tool -- [ ] Ownership on the image for the expenses webapp dir need to be changed +- [X] Ownership on the image for the expenses webapp dir need to be changed - [ ] The button for deleting share rows isn't working at all unlike the payments -- [ ] Use shopspring/decimal for money handling +- [X] Use shopspring/decimal for money handling - [ ] Rename this file ### Stack