16 lines
526 B
Docker
16 lines
526 B
Docker
# Upgrade the backend while retaining the deployment's verified frontend themes.
|
|
# BASE_IMAGE must be a locally pinned backup of the existing deployment image.
|
|
ARG BASE_IMAGE
|
|
FROM ${BASE_IMAGE}
|
|
ARG APP_VERSION
|
|
ARG VCS_REF
|
|
LABEL org.opencontainers.image.version="${APP_VERSION}"
|
|
LABEL org.opencontainers.image.revision="${VCS_REF}"
|
|
WORKDIR /app
|
|
COPY VERSION requirements.txt main.py ./
|
|
COPY apps ./apps
|
|
COPY core ./core
|
|
COPY scripts ./scripts
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
ENV APP_VERSION="${APP_VERSION}"
|