Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
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
Taiko Web
Commits
fb2f1a23
Commit
fb2f1a23
authored
Sep 10, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve
parent
9d7bf47d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
Dockerfile
Dockerfile
+10
-16
No files found.
Dockerfile
View file @
fb2f1a23
...
...
@@ -3,33 +3,27 @@ FROM node:stretch-slim
#RUN sed -i 's/deb.debian.org/mirrors.163.com/g' /etc/apt/sources.list && \
# sed -i 's/security.debian.org/mirrors.163.com/g' /etc/apt/sources.list
#pm2
RUN
npm
install
-g
pm2
# apt
#dependencies
RUN
apt update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt
install
-y
git python2.7 python-virtualenv python3.5 python3-virtualenv ffmpeg nginx
&&
\
rm
-rf
/var/lib/apt/lists/
*
rm
-rf
/var/lib/apt/lists/
*
&&
\
npm
install
-g
pm2
COPY
. /taiko-web
WORKDIR
/taiko-web
#
python virtualenv
#
envs
RUN
bash
-c
'virtualenv -p /usr/bin/python2 .venv2 &&
\
source .venv2/bin/activate &&
\
pip install Flask Flask-Caching ffmpy gunicorn redis &&
\
deactivate'
RUN
bash
-c
'virtualenv -p /usr/bin/python3 .venv3 &&
\
deactivate'
&&
\
bash -c 'virtualenv -p /usr/bin/python3 .venv3 && \
source .venv3/bin/activate && \
pip install websockets && \
deactivate'
RUN
ln
-s
/taiko-web/templates/index.html /taiko-web/public/index.html
&&
\
ln
-s
/taiko-web/public/songs/taiko.db /taiko-web/taiko.db
#nginx
RUN
cp
-rf
/taiko-web/docker/taiko-web-nginx.conf /etc/nginx/conf.d/
&&
\
deactivate' && \
ln -s /taiko-web/templates/index.html /taiko-web/public/index.html && \
ln -s /taiko-web/public/songs/taiko.db /taiko-web/taiko.db && \
cp -rf /taiko-web/docker/taiko-web-nginx.conf /etc/nginx/conf.d/ && \
rm -rf /etc/nginx/sites-enabled/*
#info
...
...
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