diff --git a/Dockerfile b/Dockerfile index c22e377..342fc27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,11 @@ RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # Install app dependencies -COPY . /usr/src/app/ -RUN npm install --no-optional && npm run build && npm prune --production && rm -rf ./src +COPY package.json package-lock.json tsconfig.json tslint.json Readme.md /usr/src/app/ +COPY src/ /usr/src/app/src/ +COPY scripts/ /usr/src/app/scripts/ +COPY other/ /usr/src/app/other/ +RUN mkdir -p docs/schema && npm install --no-optional && npm run build && npm prune --production && rm -rf ./src # Start the App EXPOSE 8080