Skip to content

Commit

Permalink
Fixed Dockerfile to copy assets from built application, not from sources
Browse files Browse the repository at this point in the history
  • Loading branch information
PM committed Feb 2, 2022
1 parent 03ffed0 commit a530d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -45,14 +45,14 @@ USER tfm

COPY ["package.json", "package-lock.json", "./"]

COPY assets ./assets

# Copy dependencies from intermediate image
COPY --from=installProd /usr/src/app/node_modules ./node_modules

# Copy built app from intermediate image
COPY --from=builder /usr/src/app/build ./build

COPY --from=builder /usr/src/app/assets ./assets

# Run command.

EXPOSE 8080
Expand Down

0 comments on commit a530d89

Please sign in to comment.