Skip to content

Commit e80f307

Browse files
Updated for test and workflow
1 parent c12643c commit e80f307

File tree

11 files changed

+3737
-749
lines changed

11 files changed

+3737
-749
lines changed

.github/workflows/pylint.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

ClientAdvisor/App/.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 88
3+
extend-ignore = E501, E203
4+
exclude = .venv, frontend,

ClientAdvisor/App/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ lib/
1717

1818
.venv
1919
frontend/node_modules
20+
frontend/coverage
2021
.env
2122
# static
2223
.azure/
Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
# Frontend stage
12
FROM node:20-alpine AS frontend
23
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
34

45
WORKDIR /home/node/app
5-
COPY ./frontend/package*.json ./
6+
COPY ./ClientAdvisor/App/frontend/package*.json ./
67
USER node
7-
RUN npm ci
8-
COPY --chown=node:node ./frontend/ ./frontend
9-
COPY --chown=node:node ./static/ ./static
8+
RUN npm ci
9+
COPY --chown=node:node ./ClientAdvisor/App/frontend/ ./frontend
10+
COPY --chown=node:node ./ClientAdvisor/App/static/ ./static
1011
WORKDIR /home/node/app/frontend
11-
RUN npm run build
12-
12+
RUN npm install --save-dev @types/jest && npm run build
13+
14+
# Backend stage
1315
FROM python:3.11-alpine
1416
RUN apk add --no-cache --virtual .build-deps \
1517
build-base \
@@ -18,15 +20,14 @@ RUN apk add --no-cache --virtual .build-deps \
1820
curl \
1921
&& apk add --no-cache \
2022
libpq
21-
# python3 python3-dev g++ unixodbc-dev unixodbc libpq-dev
22-
23-
COPY requirements.txt /usr/src/app/
23+
24+
COPY ./ClientAdvisor/App/requirements.txt /usr/src/app/
2425
RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt \
2526
&& rm -rf /root/.cache
26-
27-
COPY . /usr/src/app/
27+
28+
COPY ./ClientAdvisor/App/ /usr/src/app/
2829
COPY --from=frontend /home/node/app/static /usr/src/app/static/
2930
WORKDIR /usr/src/app
3031
EXPOSE 80
3132

32-
CMD ["gunicorn" , "-b", "0.0.0.0:80", "app:app"]
33+
CMD ["gunicorn", "-b", "0.0.0.0:80", "app:app"]

0 commit comments

Comments
 (0)