forked from nutomic/joinpeertube
move docker files to seperate subfolder
This commit is contained in:
parent
9bfc237335
commit
c4f3bec318
4 changed files with 5 additions and 6 deletions
|
@ -10,7 +10,8 @@ $ npm run serve
|
|||
## Build for production
|
||||
|
||||
```
|
||||
# sudo docker build . -t joinpeertube
|
||||
python3 generate-instances-list.py
|
||||
# docker build . -f docker/Dockerfile -t joinpeertube
|
||||
# docker run -it --rm -p 8080:80 --name joinpeertube joinpeertube
|
||||
```
|
||||
|
||||
|
|
|
@ -14,4 +14,4 @@ RUN yarn run build
|
|||
FROM nginx as production-stage
|
||||
RUN mkdir /app
|
||||
COPY --from=build-stage /app/dist /app
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
|
@ -9,10 +9,8 @@ json_list = []
|
|||
id = 0
|
||||
for i in instance_list:
|
||||
config_json = requests.get('https://' + i + '/api/v1/config').json()
|
||||
about = requests.get('https://' + i + '/api/v1/config/about')
|
||||
stats = requests.get('https://' + i + '/api/v1/server/stats')
|
||||
about_json = about.json()
|
||||
stats_json = stats.json()
|
||||
about_json = requests.get('https://' + i + '/api/v1/config/about').json()
|
||||
stats_json = requests.get('https://' + i + '/api/v1/server/stats').json()
|
||||
|
||||
data = {
|
||||
"id": id,
|
Loading…
Reference in a new issue