build #10
|
|
@ -15,12 +15,11 @@ ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
|||
ENV PATH="/opt/app/.venv/bin:${PATH}"
|
||||
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 app ./app
|
||||
COPY migrations ./migrations
|
||||
COPY alembic.ini .
|
||||
COPY pyproject.toml .
|
||||
COPY --from=builder /opt/app/.venv /opt/app/.venv
|
||||
COPY --from=builder /opt/app/app ./app
|
||||
COPY --from=builder /opt/app/migrations ./migrations
|
||||
COPY --from=builder /opt/app/alembic.ini .
|
||||
|
||||
ENTRYPOINT ["alembic", "upgrade", "head"]
|
||||
Loading…
Reference in New Issue