Prepare monorepo
This commit is contained in:
parent
a1ddb43ed0
commit
938582155d
61 changed files with 5 additions and 5 deletions
|
@ -45,7 +45,7 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
|
||||||
|
|
||||||
# copy project requirement files here to ensure they will be cached.
|
# copy project requirement files here to ensure they will be cached.
|
||||||
WORKDIR $PYSETUP_PATH
|
WORKDIR $PYSETUP_PATH
|
||||||
COPY poetry.lock pyproject.toml ./
|
COPY backend/poetry.lock backend/pyproject.toml ./
|
||||||
|
|
||||||
# install runtime deps - uses $POETRY_VIRTUALENVS_IN_PROJECT internally
|
# install runtime deps - uses $POETRY_VIRTUALENVS_IN_PROJECT internally
|
||||||
RUN poetry install
|
RUN poetry install
|
||||||
|
@ -54,9 +54,9 @@ RUN poetry install
|
||||||
FROM python-base AS production
|
FROM python-base AS production
|
||||||
ENV FASTAPI_ENV=production
|
ENV FASTAPI_ENV=production
|
||||||
COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
|
COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
|
||||||
COPY alembic.ini /usr/src/
|
COPY backend/alembic.ini /usr/src/
|
||||||
COPY start.sh /usr/src/
|
COPY start.sh /usr/src/
|
||||||
COPY ./alembic /usr/src/alembic
|
COPY backend/alembic /usr/src/alembic
|
||||||
COPY ./app /usr/src/app
|
COPY backend/app /usr/src/app
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
CMD ["bash", "start.sh"]
|
CMD ["bash", "start.sh"]
|
0
.gitignore → backend/.gitignore
vendored
0
.gitignore → backend/.gitignore
vendored
0
poetry.lock → backend/poetry.lock
generated
0
poetry.lock → backend/poetry.lock
generated
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "simple-ocpp-cs"
|
name = "simple-ocpp-cs"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
description = "A simple OCPP 2.0.1 compliant central system"
|
description = "A simple OCPP 2.0.1 compliant central system"
|
||||||
authors = ["Bluemedia <hi@bluemedia.dev>"]
|
authors = ["Bluemedia <hi@bluemedia.dev>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
Loading…
Add table
Reference in a new issue