Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
add docker
Jeff Groom30ad96322d06
diff --git a/.dockerignore b/.dockerignorenew file mode 100644index 000000000..701236960--- /dev/null+++ b/.dockerignore@@ -0,0 +1,100 @@+Dockerfile+.vscode+.github++# Created by .ignore support plugin (hsz.mobi)+### Node template+# Logs+logs+*.log+npm-debug.log*+yarn-debug.log*+yarn-error.log*++# Runtime data+pids+*.pid+*.seed+*.pid.lock++# Directory for instrumented libs generated by jscoverage/JSCover+lib-cov++# Coverage directory used by tools like istanbul+coverage++# nyc test coverage+.nyc_output++# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)+.grunt++# Bower dependency directory (https://bower.io/)+bower_components++# node-waf configuration+.lock-wscript++# Compiled binary addons (https://nodejs.org/api/addons.html)+build/Release++# Dependency directories+node_modules/+jspm_packages/++# TypeScript v1 declaration files+typings/++# Optional npm cache directory+.npm++# Optional eslint cache+.eslintcache++# Optional REPL history+.node_repl_history++# Output of 'npm pack'+*.tgz++# Yarn Integrity file+.yarn-integrity++# dotenv environment variables file+.env++# parcel-bundler cache (https://parceljs.org/)+.cache++# next.js build output+.next++# nuxt.js build output+.nuxt++# Nuxt generate+dist++# vuepress build output+.vuepress/dist++# Serverless directories+.serverless++# IDE / Editor+.idea++# Service worker+sw.*++# Mac OSX+.DS_Store++# Vim swap files+*.swp++# Postwoman build data+.postwoman++# File explorer+.directory\ No newline at end of filediff --git a/Dockerfile b/Dockerfilenew file mode 100644index 000000000..13ee8bed1--- /dev/null+++ b/Dockerfile@@ -0,0 +1,12 @@+FROM node:12.10.0-buster++WORKDIR /app++COPY . .++RUN npm install+RUN npm run build++EXPOSE 3000++CMD ["npm", "run", "start"]diff --git a/README.md b/README.mdindex de3354d2d..96cfb2eaa 100644--- a/README.md+++ b/README.md@@ -152,7 +152,15 @@ You're done!---+## Docker++```bash+docker build -t postwoman:latest+docker run -p 3000:3000 postwoman:latest+```+## Releasing+1. [Clone this repo](https://help.github.com/en/articles/cloning-a-repository) with git.1. Install dependencies by running `npm install` within the directory that you cloned (probably `postwoman`).1. Build the release files with `npm run build`.diff --git a/nuxt.config.js b/nuxt.config.jsindex 86ca72ee3..13273043b 100644--- a/nuxt.config.js+++ b/nuxt.config.js@@ -24,6 +24,9 @@ export default {/*** Headers of the page*/+ server: {+ host: '0.0.0.0', // default: localhost+ },head: {title: `${meta.name} \u2022 ${meta.shortDescription}`,meta: [