From 63abf82d0aadcfbe8313e38de37a9327ee076d0c Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Wed, 3 Aug 2022 22:58:18 -0400 Subject: [PATCH] fix Dockerfile --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96bff06..25866b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,16 +18,9 @@ WORKDIR /usr/src/huellas # This is an empty build to get the dependencies cached. RUN cargo build --release -# Install typescript dependencies -WORKDIR /usr/src/huellas/ts-client/ -RUN npm install - # Install Typescript RUN npm install -g typescript -# Set the working directory -WORKDIR /usr/src/huellas - # Now copy in the rest of the sources COPY src /usr/src/huellas/src/ COPY migrations /usr/src/huellas/migrations/ @@ -46,6 +39,9 @@ COPY ts-client /usr/src/huellas/ts-client/ # Set the working directory WORKDIR /usr/src/huellas/ts-client/ +# Install dependencies +RUN npm install + # Transpile RUN tsc