Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gateway-selector
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gateway-selector
Commits
998755b3
Commit
998755b3
authored
Aug 04, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add frontend
parent
cae1d318
Pipeline
#441
failed with stages
in 2 minutes and 17 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
15 deletions
+9
-15
Dockerfile
Dockerfile
+9
-0
public/index.html
public/index.html
+0
-11
public/style.css
public/style.css
+0
-3
public/test.txt
public/test.txt
+0
-1
No files found.
Dockerfile
View file @
998755b3
FROM
node:buster-slim as frontend
RUN
apt update
&&
apt
-y
install
python3 build-essential git
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
git clone
--depth
=
1 https://code.mycard.moe/pani/gateway-selector-web /gateway-selector-web
WORKDIR
/gateway-selector-web
RUN
npm ci
&&
\
npm run build
FROM
node:buster-slim
RUN
apt update
&&
apt
-y
install
python3 build-essential ipset
&&
rm
-rf
/var/lib/apt/lists/
*
WORKDIR
/usr/src/app
...
...
@@ -6,4 +13,6 @@ RUN npm ci
COPY
. ./
RUN
npm run build
COPY
--from=frontend /gateway-selector-web/dist ./build/public
CMD
["npm", "run", "start"]
public/index.html
deleted
100644 → 0
View file @
cae1d318
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Document
</title>
<link
rel=
"stylesheet"
href=
"./style.css"
>
</head>
<body>
<h1>
express.static 托管静态资源
</h1>
</body>
</html>
public/style.css
deleted
100644 → 0
View file @
cae1d318
h1
{
color
:
red
;
}
public/test.txt
deleted
100644 → 0
View file @
cae1d318
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment