Skip to content

Commit

Permalink
update govtool docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel-Tyty committed Feb 7, 2025
1 parent 056634b commit 9abd178
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile.govtool
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ WORKDIR /app/govtool/frontend

RUN yarn install

COPY ./ui/dist /app/govtool/frontend/node_modules/@intersect.mbo/govtool-outcomes-pillar-ui/dist
COPY ./ui/dist /app/govtool/frontend/ui/dist

# Conditionally install the package or copy UI files
RUN if [ "$CARDANO_NETWORK" = "mainnet" ]; then \
echo "Installing latest @intersect.mbo/govtool-outcomes-pillar-ui via yarn..."; \
yarn cache clean; \
yarn add @intersect.mbo/govtool-outcomes-pillar-ui@latest; \
else \
echo "Copying UI files for non-mainnet environment..."; \
cp -r /app/govtool/frontend/ui/dist /app/govtool/frontend/node_modules/@intersect.mbo/govtool-outcomes-pillar-ui/dist; \
fi

# Copy environment variables and build the project
RUN cp .env.example .env
Expand Down

0 comments on commit 9abd178

Please sign in to comment.