UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Verified Commit 85fe5576 authored by Patrick Tafoya's avatar Patrick Tafoya
Browse files

BULL-3222-react-template - Fixing UI to allow initial run to be without package-lock.

parent bc8a70e6
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,13 @@ WORKDIR /home/node
USER node
# set up dependencies
COPY --chown=node:node ./<<projectName>>-ui/package.json ./<<projectName>>-ui/package-lock.json ./
COPY --chown=node:node ./<<projectName>>-ui/package.json ./
# install dependencies
RUN npm ci
# TODO: It would be vest to ensure npm install has been run before creating the image for the first time, then the if check can be removed
RUN if test -f package-lock.json ; then npm ci ; else npm i ; fi
# Expose port 8080 (optional, if you plan to access directly)
EXPOSE 8080
# Default command (can be overridden by docker-compose)
CMD ["npx", "vite", "--host"]
\ No newline at end of file
CMD ["npx", "vite", "--host"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment