mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-27 23:17:38 +01:00
@@ -22,16 +22,17 @@ ARG SUB_PATH="/mealie/"
|
||||
ENV SUB_PATH=$SUB_PATH
|
||||
|
||||
WORKDIR /app
|
||||
ENV MEALIE_VERSION="v2.5.0"
|
||||
|
||||
# Clone the Mealie repository to get the frontend source code
|
||||
# hadolint ignore=DL3003
|
||||
RUN git clone --branch v2.4.2 https://github.com/mealie-recipes/mealie.git . && \
|
||||
RUN git clone --branch "$MEALIE_VERSION" https://github.com/mealie-recipes/mealie.git . && \
|
||||
cd /app/frontend && \
|
||||
yarn install --prefer-offline --frozen-lockfile --non-interactive --production=false --network-timeout 1000000 && \
|
||||
yarn generate
|
||||
|
||||
# Stage 2: Build the Final Image
|
||||
FROM hkotel/mealie:v2.4.2
|
||||
FROM hkotel/mealie:"$MEALIE_VERSION"
|
||||
|
||||
# Copy the rebuilt frontend files into the final image
|
||||
COPY --from=builder /app/frontend/dist /spa/static
|
||||
|
||||
Reference in New Issue
Block a user