Skip to content

Commit

Permalink
move cp data step earlier so the build succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahs committed Jun 23, 2021
1 parent d454e40 commit 494e3f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 494e3f5

Please sign in to comment.