UNCLASSIFIED - NO CUI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fiesta-wagon-templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Platform One
Party Bus
fiesta-wagon
fiesta-wagon-templates
Commits
85fe5576
Verified
Commit
85fe5576
authored
4 months ago
by
Patrick Tafoya
Browse files
Options
Downloads
Patches
Plain Diff
BULL-3222-react-template - Fixing UI to allow initial run to be without package-lock.
parent
bc8a70e6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/Dockerfile.node-vite-ui.dev
+4
-4
4 additions, 4 deletions
docker/Dockerfile.node-vite-ui.dev
with
4 additions
and
4 deletions
docker/Dockerfile.node-vite-ui.dev
+
4
−
4
View file @
85fe5576
...
...
@@ -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"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment