New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Html info core #1
base: main
Are you sure you want to change the base?
Conversation
COPY poetry.lock pyproject.toml / | ||
|
||
RUN poetry config virtualenvs.create false \ | ||
&& poetry install $(test "$YOUR_ENV" == production && echo "--no-dev") --no-interaction --no-ansi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add as env vars --no-interaction and --no-ansi: POETRY_NO_ANSI and POETRY_NO_INTERACTION
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checkout docker multi-stage builds for prod and dev environments.
|
||
COPY html_utils /html_utils | ||
|
||
CMD ["poetry", "run", "uvicorn", "main:app", "--app-dir", "html_utils/", "--port", "80", "--host", "0.0.0.0"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to call poetry run
when virtualenvs = false
WORKDIR / | ||
COPY poetry.lock pyproject.toml / | ||
|
||
RUN poetry config virtualenvs.create false \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set config as env var: POETRY_VIRTUAENVS_CREATE = 0
adding core functionality to the api.
adding docker support