diff --git a/contracts/src/bridge/frontend/Dockerfile b/contracts/src/bridge/frontend/Dockerfile index 720f4395b0..3d9032af61 100644 --- a/contracts/src/bridge/frontend/Dockerfile +++ b/contracts/src/bridge/frontend/Dockerfile @@ -1,7 +1,11 @@ # Use an official Node.js 22 as a parent image FROM node:22-alpine -WORKDIR /usr/src/app +# setup container data structure +RUN mkdir -p /home/obscuro/go-obscuro/contracts/src/bridge +COPY ./contracts/src/bridge/frontend /home/obscuro/go-obscuro/contracts/src/bridge/frontend + +WORKDIR /home/obscuro/go-obscuro/contracts/src/bridge/frontend # ARG for build-time variable ARG API_HOST @@ -17,11 +21,6 @@ ENV NEXT_PUBLIC_BRIDGE_L2=${L2_BRIDGE} ENV NEXT_PUBLIC_BRIDGE_MESSAGE_BUS=${MESSAGE_BUS} ENV NEXT_PUBLIC_BRIDGE_GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID} -# Copy package.json and package-lock.json (or yarn.lock) into the container -COPY package*.json ./ - RUN npm install -COPY . . -RUN npm run build -EXPOSE 80 -CMD ["npm", "start"] \ No newline at end of file + +EXPOSE 80 \ No newline at end of file