fix: replace postgresql-libs with libpq in Dockerfile and streamline file copying
This commit is contained in:
parent
0e48023258
commit
755547b7bf
|
|
@ -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"]
|
||||||
Loading…
Reference in New Issue