Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
fix: dep
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Feb 18, 2022
1 parent 82fe110 commit cab2571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ RUN node -e " \
FROM node:$NODE_VERSION as deps
WORKDIR /app
COPY --from=prepare /app/package.json /app/yarn.lock ./
RUN yarn install --frozen-lockfile
RUN yarn install --frozen-lockfile && yarn sitemap

# Rebuild the source code only when needed
FROM node:$NODE_VERSION AS builder
ENV NODE_ENV production
ARG PRODUCTION
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/public ./public
COPY . .
RUN yarn sitemap && \
if [ -z "$PRODUCTION" ]; then \
RUN if [ -z "$PRODUCTION" ]; then \
echo "Copy staging values"; \
cp .env.staging .env.production; \
cp ./public/robots.staging.txt ./public/robots.txt; \
Expand Down

0 comments on commit cab2571

Please sign in to comment.