wulkanowy-web/Dockerfile

29 lines
723 B
Docker
Raw Permalink Normal View History

Completely new backend and reworked frontend by Marioneq (#93) * Rewrited Frontend by Marioneq * Rewrited Backend by Marioneq * Delete old backend and update workflows * Deleting files on Marioneq command * Deleting files on Marioneq command * Deleting files on Marioneq command * Corrections with Marioneq command * Rename Appbar.vue to AppBar.vue * Try to fix backend workflow * Try to fix backend workflow 2 * Try to fix backend workflow 3 * Try to fix python workflow part 4 * Update python version * Update requirements.txt * Fix frontend * Simple backend test * Hotfix for backend workflow * Update dependencies * Revert "Update dependencies" This reverts commit 6b610ff6e398052bf2a98e47c0984c83e46db8a4. * Add few test * Update test.py * Update backend * Add /notes test. * Add /grades test * Update backend * Add more tests * Update the tests to make them easier to configure * Update code format * Color workflow test * Update requirements * Updated backend test * Test workflow reaction * Temporary add workflow reaction * Try update test logic * Delete postgres image * Update docker file * Print response code in backend test * Add color to workflow * Test workflow colors * Add colorama to requirements.txt * Test color * Fix all colors * Colors * FINALLY FIX THE COLORS * Add extended support for if * Hotflix for backend test * Delete many if from backend test * Updating backend test * Update backend test * Changes requested by Pengwius * Changes requested by MRmlik12 * Changes requested by MRmlik12 part 2 * Fix rules * Change api.ts requested by MRmlik12 * Update Account Manager * Fix Panel * Changes requested by MRmlik12 part 3 * Fix - Changes requested by MRmlik12 part 3 * Update login.py * Fix login.py * Fix login.py part 2 * Fix SelectStudent.vue * Update package-lock.json * Update main.py * Update variables name * Fix changes requested by MarcinK50 * Add invalid url error Co-authored-by: Marioneq 4958 <mq4958@gmail.com> Co-authored-by: Marioneq Marioneqowski <marioneq4958@gmail.com>
2022-05-22 21:00:45 +02:00
FROM nikolaik/python-nodejs:python3.10-nodejs16-bullseye
2021-04-07 10:04:54 +02:00
2021-04-07 10:33:38 +02:00
ENV PYTHONUNBUFFERED 1
Completely new backend and reworked frontend by Marioneq (#93) * Rewrited Frontend by Marioneq * Rewrited Backend by Marioneq * Delete old backend and update workflows * Deleting files on Marioneq command * Deleting files on Marioneq command * Deleting files on Marioneq command * Corrections with Marioneq command * Rename Appbar.vue to AppBar.vue * Try to fix backend workflow * Try to fix backend workflow 2 * Try to fix backend workflow 3 * Try to fix python workflow part 4 * Update python version * Update requirements.txt * Fix frontend * Simple backend test * Hotfix for backend workflow * Update dependencies * Revert "Update dependencies" This reverts commit 6b610ff6e398052bf2a98e47c0984c83e46db8a4. * Add few test * Update test.py * Update backend * Add /notes test. * Add /grades test * Update backend * Add more tests * Update the tests to make them easier to configure * Update code format * Color workflow test * Update requirements * Updated backend test * Test workflow reaction * Temporary add workflow reaction * Try update test logic * Delete postgres image * Update docker file * Print response code in backend test * Add color to workflow * Test workflow colors * Add colorama to requirements.txt * Test color * Fix all colors * Colors * FINALLY FIX THE COLORS * Add extended support for if * Hotflix for backend test * Delete many if from backend test * Updating backend test * Update backend test * Changes requested by Pengwius * Changes requested by MRmlik12 * Changes requested by MRmlik12 part 2 * Fix rules * Change api.ts requested by MRmlik12 * Update Account Manager * Fix Panel * Changes requested by MRmlik12 part 3 * Fix - Changes requested by MRmlik12 part 3 * Update login.py * Fix login.py * Fix login.py part 2 * Fix SelectStudent.vue * Update package-lock.json * Update main.py * Update variables name * Fix changes requested by MarcinK50 * Add invalid url error Co-authored-by: Marioneq 4958 <mq4958@gmail.com> Co-authored-by: Marioneq Marioneqowski <marioneq4958@gmail.com>
2022-05-22 21:00:45 +02:00
WORKDIR /src/frontend
2021-04-07 10:04:54 +02:00
Completely new backend and reworked frontend by Marioneq (#93) * Rewrited Frontend by Marioneq * Rewrited Backend by Marioneq * Delete old backend and update workflows * Deleting files on Marioneq command * Deleting files on Marioneq command * Deleting files on Marioneq command * Corrections with Marioneq command * Rename Appbar.vue to AppBar.vue * Try to fix backend workflow * Try to fix backend workflow 2 * Try to fix backend workflow 3 * Try to fix python workflow part 4 * Update python version * Update requirements.txt * Fix frontend * Simple backend test * Hotfix for backend workflow * Update dependencies * Revert "Update dependencies" This reverts commit 6b610ff6e398052bf2a98e47c0984c83e46db8a4. * Add few test * Update test.py * Update backend * Add /notes test. * Add /grades test * Update backend * Add more tests * Update the tests to make them easier to configure * Update code format * Color workflow test * Update requirements * Updated backend test * Test workflow reaction * Temporary add workflow reaction * Try update test logic * Delete postgres image * Update docker file * Print response code in backend test * Add color to workflow * Test workflow colors * Add colorama to requirements.txt * Test color * Fix all colors * Colors * FINALLY FIX THE COLORS * Add extended support for if * Hotflix for backend test * Delete many if from backend test * Updating backend test * Update backend test * Changes requested by Pengwius * Changes requested by MRmlik12 * Changes requested by MRmlik12 part 2 * Fix rules * Change api.ts requested by MRmlik12 * Update Account Manager * Fix Panel * Changes requested by MRmlik12 part 3 * Fix - Changes requested by MRmlik12 part 3 * Update login.py * Fix login.py * Fix login.py part 2 * Fix SelectStudent.vue * Update package-lock.json * Update main.py * Update variables name * Fix changes requested by MarcinK50 * Add invalid url error Co-authored-by: Marioneq 4958 <mq4958@gmail.com> Co-authored-by: Marioneq Marioneqowski <marioneq4958@gmail.com>
2022-05-22 21:00:45 +02:00
COPY frontend/package-lock.json /src/frontend/package-lock.json
COPY frontend/package.json /src/frontend/package.json
2021-04-07 10:04:54 +02:00
RUN npm install
Completely new backend and reworked frontend by Marioneq (#93) * Rewrited Frontend by Marioneq * Rewrited Backend by Marioneq * Delete old backend and update workflows * Deleting files on Marioneq command * Deleting files on Marioneq command * Deleting files on Marioneq command * Corrections with Marioneq command * Rename Appbar.vue to AppBar.vue * Try to fix backend workflow * Try to fix backend workflow 2 * Try to fix backend workflow 3 * Try to fix python workflow part 4 * Update python version * Update requirements.txt * Fix frontend * Simple backend test * Hotfix for backend workflow * Update dependencies * Revert "Update dependencies" This reverts commit 6b610ff6e398052bf2a98e47c0984c83e46db8a4. * Add few test * Update test.py * Update backend * Add /notes test. * Add /grades test * Update backend * Add more tests * Update the tests to make them easier to configure * Update code format * Color workflow test * Update requirements * Updated backend test * Test workflow reaction * Temporary add workflow reaction * Try update test logic * Delete postgres image * Update docker file * Print response code in backend test * Add color to workflow * Test workflow colors * Add colorama to requirements.txt * Test color * Fix all colors * Colors * FINALLY FIX THE COLORS * Add extended support for if * Hotflix for backend test * Delete many if from backend test * Updating backend test * Update backend test * Changes requested by Pengwius * Changes requested by MRmlik12 * Changes requested by MRmlik12 part 2 * Fix rules * Change api.ts requested by MRmlik12 * Update Account Manager * Fix Panel * Changes requested by MRmlik12 part 3 * Fix - Changes requested by MRmlik12 part 3 * Update login.py * Fix login.py * Fix login.py part 2 * Fix SelectStudent.vue * Update package-lock.json * Update main.py * Update variables name * Fix changes requested by MarcinK50 * Add invalid url error Co-authored-by: Marioneq 4958 <mq4958@gmail.com> Co-authored-by: Marioneq Marioneqowski <marioneq4958@gmail.com>
2022-05-22 21:00:45 +02:00
WORKDIR /src/backend
2021-04-07 10:04:54 +02:00
Completely new backend and reworked frontend by Marioneq (#93) * Rewrited Frontend by Marioneq * Rewrited Backend by Marioneq * Delete old backend and update workflows * Deleting files on Marioneq command * Deleting files on Marioneq command * Deleting files on Marioneq command * Corrections with Marioneq command * Rename Appbar.vue to AppBar.vue * Try to fix backend workflow * Try to fix backend workflow 2 * Try to fix backend workflow 3 * Try to fix python workflow part 4 * Update python version * Update requirements.txt * Fix frontend * Simple backend test * Hotfix for backend workflow * Update dependencies * Revert "Update dependencies" This reverts commit 6b610ff6e398052bf2a98e47c0984c83e46db8a4. * Add few test * Update test.py * Update backend * Add /notes test. * Add /grades test * Update backend * Add more tests * Update the tests to make them easier to configure * Update code format * Color workflow test * Update requirements * Updated backend test * Test workflow reaction * Temporary add workflow reaction * Try update test logic * Delete postgres image * Update docker file * Print response code in backend test * Add color to workflow * Test workflow colors * Add colorama to requirements.txt * Test color * Fix all colors * Colors * FINALLY FIX THE COLORS * Add extended support for if * Hotflix for backend test * Delete many if from backend test * Updating backend test * Update backend test * Changes requested by Pengwius * Changes requested by MRmlik12 * Changes requested by MRmlik12 part 2 * Fix rules * Change api.ts requested by MRmlik12 * Update Account Manager * Fix Panel * Changes requested by MRmlik12 part 3 * Fix - Changes requested by MRmlik12 part 3 * Update login.py * Fix login.py * Fix login.py part 2 * Fix SelectStudent.vue * Update package-lock.json * Update main.py * Update variables name * Fix changes requested by MarcinK50 * Add invalid url error Co-authored-by: Marioneq 4958 <mq4958@gmail.com> Co-authored-by: Marioneq Marioneqowski <marioneq4958@gmail.com>
2022-05-22 21:00:45 +02:00
COPY backend/requirements.txt .
2021-04-07 10:33:38 +02:00
RUN pip install -r requirements.txt
2021-04-07 10:04:54 +02:00
COPY frontend/* ./frontend/
COPY frontend/src/* ./frontend/src/
Completely new backend and reworked frontend by Marioneq (#93) * Rewrited Frontend by Marioneq * Rewrited Backend by Marioneq * Delete old backend and update workflows * Deleting files on Marioneq command * Deleting files on Marioneq command * Deleting files on Marioneq command * Corrections with Marioneq command * Rename Appbar.vue to AppBar.vue * Try to fix backend workflow * Try to fix backend workflow 2 * Try to fix backend workflow 3 * Try to fix python workflow part 4 * Update python version * Update requirements.txt * Fix frontend * Simple backend test * Hotfix for backend workflow * Update dependencies * Revert "Update dependencies" This reverts commit 6b610ff6e398052bf2a98e47c0984c83e46db8a4. * Add few test * Update test.py * Update backend * Add /notes test. * Add /grades test * Update backend * Add more tests * Update the tests to make them easier to configure * Update code format * Color workflow test * Update requirements * Updated backend test * Test workflow reaction * Temporary add workflow reaction * Try update test logic * Delete postgres image * Update docker file * Print response code in backend test * Add color to workflow * Test workflow colors * Add colorama to requirements.txt * Test color * Fix all colors * Colors * FINALLY FIX THE COLORS * Add extended support for if * Hotflix for backend test * Delete many if from backend test * Updating backend test * Update backend test * Changes requested by Pengwius * Changes requested by MRmlik12 * Changes requested by MRmlik12 part 2 * Fix rules * Change api.ts requested by MRmlik12 * Update Account Manager * Fix Panel * Changes requested by MRmlik12 part 3 * Fix - Changes requested by MRmlik12 part 3 * Update login.py * Fix login.py * Fix login.py part 2 * Fix SelectStudent.vue * Update package-lock.json * Update main.py * Update variables name * Fix changes requested by MarcinK50 * Add invalid url error Co-authored-by: Marioneq 4958 <mq4958@gmail.com> Co-authored-by: Marioneq Marioneqowski <marioneq4958@gmail.com>
2022-05-22 21:00:45 +02:00
COPY frontend/public/* ./frontend/public/
COPY frontend/tests/* ./frontend/tests/
COPY backend/* ./backend/
COPY backend/app/* ./backend/app/
COPY backend/app/endpoints/* ./backend/app/endpoints/
COPY backend/app/models/* ./backend/app/models/
WORKDIR /src/frontend
2021-04-07 10:04:54 +02:00
EXPOSE 8000
Completely new backend and reworked frontend by Marioneq (#93) * Rewrited Frontend by Marioneq * Rewrited Backend by Marioneq * Delete old backend and update workflows * Deleting files on Marioneq command * Deleting files on Marioneq command * Deleting files on Marioneq command * Corrections with Marioneq command * Rename Appbar.vue to AppBar.vue * Try to fix backend workflow * Try to fix backend workflow 2 * Try to fix backend workflow 3 * Try to fix python workflow part 4 * Update python version * Update requirements.txt * Fix frontend * Simple backend test * Hotfix for backend workflow * Update dependencies * Revert "Update dependencies" This reverts commit 6b610ff6e398052bf2a98e47c0984c83e46db8a4. * Add few test * Update test.py * Update backend * Add /notes test. * Add /grades test * Update backend * Add more tests * Update the tests to make them easier to configure * Update code format * Color workflow test * Update requirements * Updated backend test * Test workflow reaction * Temporary add workflow reaction * Try update test logic * Delete postgres image * Update docker file * Print response code in backend test * Add color to workflow * Test workflow colors * Add colorama to requirements.txt * Test color * Fix all colors * Colors * FINALLY FIX THE COLORS * Add extended support for if * Hotflix for backend test * Delete many if from backend test * Updating backend test * Update backend test * Changes requested by Pengwius * Changes requested by MRmlik12 * Changes requested by MRmlik12 part 2 * Fix rules * Change api.ts requested by MRmlik12 * Update Account Manager * Fix Panel * Changes requested by MRmlik12 part 3 * Fix - Changes requested by MRmlik12 part 3 * Update login.py * Fix login.py * Fix login.py part 2 * Fix SelectStudent.vue * Update package-lock.json * Update main.py * Update variables name * Fix changes requested by MarcinK50 * Add invalid url error Co-authored-by: Marioneq 4958 <mq4958@gmail.com> Co-authored-by: Marioneq Marioneqowski <marioneq4958@gmail.com>
2022-05-22 21:00:45 +02:00
ENTRYPOINT [ "python3", "main", "0.0.0.0:8000"]