fix: replace postgresql-libs with libpq in Dockerfile and streamline file copying
Build and deploy / build (push) Failing after 11s Details
Build and deploy / deploy (push) Has been skipped Details

This commit is contained in:
k1nq 2025-11-30 00:26:44 +05:00
parent 0e48023258
commit 755547b7bf
1 changed files with 5 additions and 6 deletions

View File

@ -15,12 +15,11 @@ ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
ENV PATH="/opt/app/.venv/bin:${PATH}" ENV PATH="/opt/app/.venv/bin:${PATH}"
WORKDIR /opt/app WORKDIR /opt/app
RUN apk add --no-cache postgresql-libs RUN apk add --no-cache libpq
COPY --from=builder /opt/migrations/.venv /opt/app/.venv COPY --from=builder /opt/app/.venv /opt/app/.venv
COPY app ./app COPY --from=builder /opt/app/app ./app
COPY migrations ./migrations COPY --from=builder /opt/app/migrations ./migrations
COPY alembic.ini . COPY --from=builder /opt/app/alembic.ini .
COPY pyproject.toml .
ENTRYPOINT ["alembic", "upgrade", "head"] ENTRYPOINT ["alembic", "upgrade", "head"]