diff --git a/Dockerfile b/Dockerfile index 01f7d2f8..cae5d5aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,13 +24,15 @@ ARG PRODUCTION WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -RUN yarn build && \ - if [ -z "$PRODUCTION" ]; then \ - echo "Copy staging values"; \ +RUN if [ -z "$PRODUCTION" ]; then \ + echo "Overriding .env for staging"; \ cp .env.staging .env.production; \ - cp ./public/robots.staging.txt ./public/robots.txt; \ - fi \ - && yarn export + fi && \ + yarn build:export \ + && if [ -z "$PRODUCTION" ]; then \ + echo "Overriding robots.txt for staging"; \ + mv ./out/robots.staging.txt ./out/robots.txt; \ + fi # Production image, copy all the files and run next FROM ghcr.io/socialgouv/docker/nginx:6.64.2 AS runner diff --git a/public/sitemap-0.xml b/public/sitemap-0.xml index d31856f1..1bdca2c2 100644 --- a/public/sitemap-0.xml +++ b/public/sitemap-0.xml @@ -1,4 +1,4 @@ -https://template.fabrique.social.gouv.frdaily0.72022-02-18T21:49:06.024Z +https://template.fabrique.social.gouv.frdaily0.72022-02-19T09:12:14.128Z \ No newline at end of file