From 03285a24cb20c8a0465bc1b2f0ac2ff0ef38afce Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 16 Feb 2023 22:57:25 +0000 Subject: [PATCH] bug: cleanup docker build --- packages/app/.dockerignore => .dockerignore | 7 ++++--- Dockerfile | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) rename packages/app/.dockerignore => .dockerignore (50%) diff --git a/packages/app/.dockerignore b/.dockerignore similarity index 50% rename from packages/app/.dockerignore rename to .dockerignore index 404f1903..f04d5649 100644 --- a/packages/app/.dockerignore +++ b/.dockerignore @@ -1,7 +1,8 @@ -node_modules/ +**/node_modules/ .github/ .vscode/ -build/ +**/build/ yarn-error.log .husky/ -.git/ \ No newline at end of file +.git/ +**/dist/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 86990f93..8619f90e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,12 @@ FROM node:16 as build WORKDIR /app -COPY . . + +COPY package.json yarn.lock . +COPY packages/app/package.json packages/app/ +COPY packages/nostr/package.json packages/nostr/ RUN yarn install --network-timeout 1000000 + +COPY . . RUN yarn build FROM nginx:mainline-alpine