Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vt-research-connect-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
cscapstone-group3
vt-research-connect-frontend
Commits
1568a707
Commit
1568a707
authored
9 months ago
by
hannahl8
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/main'
parents
80633399
d96781a7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#10642
passed
9 months ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+9
-7
9 additions, 7 deletions
Dockerfile
vite.config-docker.ts
+0
-8
0 additions, 8 deletions
vite.config-docker.ts
vite.config.ts
+12
-3
12 additions, 3 deletions
vite.config.ts
with
21 additions
and
18 deletions
Dockerfile
+
9
−
7
View file @
1568a707
...
...
@@ -2,13 +2,15 @@ FROM node:18-alpine
WORKDIR
/vtrc
COPY
public/ /vtrc/public
COPY
src/ /vtrc/src
COPY
package.json package-lock.json tsconfig.json vite.config.ts tsconfig.node.json index.html .eslintrc.cjs /vtrc/
COPY
vite.config-docker.ts /vtrc/vite.config.ts
COPY
package.json .
COPY
package-lock.json .
RUN
npm
c
i
RUN
npm
i
nstall
EXPOSE
5173
COPY
./ ./
CMD
["npm", "run", "dev"]
RUN
npm run build
EXPOSE
8080
CMD
["npm", "run", "preview"]
This diff is collapsed.
Click to expand it.
vite.config-docker.ts
deleted
100644 → 0
+
0
−
8
View file @
80633399
import
{
defineConfig
}
from
'
vite
'
import
react
from
'
@vitejs/plugin-react
'
// https://vitejs.dev/config/
export
default
defineConfig
({
plugins
:
[
react
()],
server
:
{
port
:
80
}
})
This diff is collapsed.
Click to expand it.
vite.config.ts
+
12
−
3
View file @
1568a707
import
{
defineConfig
}
from
'
vite
'
import
react
from
'
@vitejs/plugin-react
'
// https://vitejs.dev/config/
export
default
defineConfig
({
base
:
"
/
"
,
plugins
:
[
react
()],
server
:
{
port
:
5175
}
})
preview
:
{
port
:
8080
,
strictPort
:
true
,
},
server
:
{
port
:
8080
,
strictPort
:
true
,
host
:
true
,
origin
:
"
http://0.0.0.0:8080
"
,
},
});
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