From ed658f89d60a87daaad08d9baca2d952bbeb54c0 Mon Sep 17 00:00:00 2001 From: Jennifer Echenim Date: Tue, 25 Jun 2024 14:22:10 +0400 Subject: [PATCH] update Dockerfile --- contracts/src/bridge/frontend/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contracts/src/bridge/frontend/Dockerfile b/contracts/src/bridge/frontend/Dockerfile index 3d9032af61..dfb1a115fd 100644 --- a/contracts/src/bridge/frontend/Dockerfile +++ b/contracts/src/bridge/frontend/Dockerfile @@ -2,7 +2,7 @@ FROM node:22-alpine # setup container data structure -RUN mkdir -p /home/obscuro/go-obscuro/contracts/src/bridge +RUN mkdir -p /home/obscuro/go-obscuro/contracts/src/bridge/frontend COPY ./contracts/src/bridge/frontend /home/obscuro/go-obscuro/contracts/src/bridge/frontend WORKDIR /home/obscuro/go-obscuro/contracts/src/bridge/frontend @@ -23,4 +23,8 @@ ENV NEXT_PUBLIC_BRIDGE_GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID} RUN npm install -EXPOSE 80 \ No newline at end of file +RUN npm run build + +EXPOSE 80 + +CMD ["npm", "start"] \ No newline at end of file