From 50376524979e8ec39f54ef9940aac815ebf640e9 Mon Sep 17 00:00:00 2001 From: Jennifer Echenim Date: Fri, 4 Oct 2024 14:51:11 +0400 Subject: [PATCH] Update Dockerfile for tenscan FE --- tools/tenscan/frontend/Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tools/tenscan/frontend/Dockerfile b/tools/tenscan/frontend/Dockerfile index 0760c0b4e1..1144273b25 100644 --- a/tools/tenscan/frontend/Dockerfile +++ b/tools/tenscan/frontend/Dockerfile @@ -1,11 +1,17 @@ FROM node:18-buster as runner -# Install pnpm + RUN npm install -g pnpm -# setup container data structure -RUN mkdir -p /home/obscuro/go-obscuro/tools/tenscan/ -COPY ./tools/tenscan/frontend /home/obscuro/go-obscuro/tools/tenscan/frontend -WORKDIR /home/obscuro/go-obscuro/tools/tenscan/frontend +COPY . /home/obscuro/go-obscuro/ + +WORKDIR /home/obscuro/go-obscuro/ + RUN pnpm install -EXPOSE 80 \ No newline at end of file +WORKDIR /home/obscuro/go-obscuro/tools/tenscan/frontend + +RUN pnpm install --filter ./tools/tenscan/frontend... + +EXPOSE 80 + +CMD ["pnpm", "run", "start"]