Update Dockerfile

This commit is contained in:
Alexandre
2024-10-15 12:16:36 +02:00
committed by GitHub
parent 83bbab72a3
commit f799ec31ce

View File

@@ -8,20 +8,10 @@ ENV SUB_PATH=$SUB_PATH
WORKDIR /app
# Clone the Mealie repository to get the frontend source code
RUN git clone https://github.com/mealie-recipes/mealie.git .
WORKDIR /app/frontend
# Install frontend dependencies
RUN yarn install \
--prefer-offline \
--frozen-lockfile \
--non-interactive \
--production=false \
--network-timeout 1000000
# Build the frontend with the specified SUB_PATH
RUN yarn generate
RUN git clone 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:nightly