move cp data step earlier so the build succeeds

This commit is contained in:
Sarah Schneider 2021-06-23 15:33:44 -04:00
Родитель d454e4032e
Коммит 494e3f585e
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -52,6 +52,9 @@ COPY tsconfig.json ./tsconfig.json
RUN npx tsc
# We need to copy data in order to do the build
COPY --chown=node:node data ./data
RUN npm run build
# --------------------------------------------------------------------------------
@ -85,7 +88,6 @@ ENV AIRGAP true
# Copy only what's needed to run the server
COPY --chown=node:node assets ./assets
COPY --chown=node:node content ./content
COPY --chown=node:node data ./data
COPY --chown=node:node includes ./includes
COPY --chown=node:node layouts ./layouts
COPY --chown=node:node lib ./lib