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
0564942f
Commit
0564942f
authored
Aug 04, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get frontend from minio
parent
ad30ba14
Pipeline
#456
passed with stages
in 9 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
Dockerfile
Dockerfile
+5
-11
No files found.
Dockerfile
View file @
0564942f
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/
*
RUN
apt update
&&
apt
-y
install
python3 build-essential ipset
wget
&&
rm
-rf
/var/lib/apt/lists/
*
WORKDIR
/usr/src/app
COPY
./package*.json ./
RUN
npm ci
COPY
. ./
RUN
npm run build
COPY
--from=frontend /gateway-selector-web/dist ./build/public
RUN
npm run build
&&
\
mkdir
-p
build/public
&&
\
cd
build/public
&&
\
wget
-O
- https://cdn01.moecube.com/gateway-selector-web/gateway-selector-web.tar.gz |
tar
zxvf -
CMD
["npm", "run", "start"]
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