Compare commits
No commits in common. "main" and "feature/nats" have entirely different histories.
main
...
feature/na
|
@ -5,13 +5,10 @@ when:
|
|||
steps:
|
||||
docker:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
secrets: [docker_username, docker_password]
|
||||
settings:
|
||||
pull_image: true
|
||||
registry: git.bluemedia.dev
|
||||
repo: git.bluemedia.dev/bluemedia/simple-ocpp-cs
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
platforms: linux/amd64
|
||||
tag: latest
|
|
@ -1,5 +1,5 @@
|
|||
# `python-base` sets up all our shared environment variables
|
||||
FROM python:3.12-slim AS python-base
|
||||
FROM python:3.11-slim as python-base
|
||||
|
||||
# python
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
|
@ -32,7 +32,7 @@ ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
|
|||
|
||||
|
||||
# `builder-base` stage is used to build deps + create our virtual environment
|
||||
FROM python-base AS builder-base
|
||||
FROM python-base as builder-base
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
# deps for installing poetry
|
||||
|
@ -48,10 +48,10 @@ WORKDIR $PYSETUP_PATH
|
|||
COPY poetry.lock pyproject.toml ./
|
||||
|
||||
# install runtime deps - uses $POETRY_VIRTUALENVS_IN_PROJECT internally
|
||||
RUN poetry install
|
||||
RUN poetry install --no-dev
|
||||
|
||||
# `production` image used for runtime
|
||||
FROM python-base AS production
|
||||
FROM python-base as production
|
||||
ENV FASTAPI_ENV=production
|
||||
COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
|
||||
COPY alembic.ini /usr/src/
|
||||
|
|
Loading…
Reference in a new issue