зеркало из https://github.com/github/docs.git
move cp data step earlier so the build succeeds
This commit is contained in:
Родитель
d454e4032e
Коммит
494e3f585e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче