move docker files to seperate subfolder

This commit is contained in:
Felix 2020-02-09 14:35:18 +01:00
parent 9bfc237335
commit c4f3bec318
4 changed files with 5 additions and 6 deletions

View file

@ -10,7 +10,8 @@ $ npm run serve
## Build for production ## 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 # docker run -it --rm -p 8080:80 --name joinpeertube joinpeertube
``` ```

View file

@ -14,4 +14,4 @@ RUN yarn run build
FROM nginx as production-stage FROM nginx as production-stage
RUN mkdir /app RUN mkdir /app
COPY --from=build-stage /app/dist /app COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf COPY docker/nginx.conf /etc/nginx/nginx.conf

View file

@ -9,10 +9,8 @@ json_list = []
id = 0 id = 0
for i in instance_list: for i in instance_list:
config_json = requests.get('https://' + i + '/api/v1/config').json() config_json = requests.get('https://' + i + '/api/v1/config').json()
about = requests.get('https://' + i + '/api/v1/config/about') about_json = requests.get('https://' + i + '/api/v1/config/about').json()
stats = requests.get('https://' + i + '/api/v1/server/stats') stats_json = requests.get('https://' + i + '/api/v1/server/stats').json()
about_json = about.json()
stats_json = stats.json()
data = { data = {
"id": id, "id": id,