Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions default/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
FROM python:slim
FROM ghcr.io/clariteia/minos:1.0 as build

# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE 1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED 1
RUN poetry build

FROM debian:buster as production

RUN apt-get update && apt-get install --yes postgresql-client git curl netcat

# Install and setup poetry
RUN pip install -U pip \
&& curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
ENV PATH="${PATH}:/root/.poetry/bin"

WORKDIR /microservice
COPY . .
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
COPY --from=build /microservice/dist/ ./dist
Empty file added default/__init__.py
Empty file.
11 changes: 1 addition & 10 deletions default/src/__init__.py → default/src/default/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
__email__ = "devs@clariteia.com"
__version__ = "0.0.1-alpha"

from .aggregates import (
Foo,
)
from .controllers import (
from default.src.default.controllers import (
FooController,
)
from .sagas import (
UPDATE_FOO,
)
from .services import (
FooService,
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.