diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..32babd0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Use an official Node.js 6.9.1 runtime as a parent image +FROM node:6.9.1-slim + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json (if available) +COPY package*.json ./ + +# Install production dependencies +RUN npm install --production + +# Copy the current directory contents into the container +COPY . . + +# Set environment variables +ENV PORT=2222 +ENV DEBUG= + +# Make port 2222 available to the world outside this container +EXPOSE 2222 + +# Run the app when the container launches +CMD ["npm", "start"] \ No newline at end of file diff --git a/package.json b/package.json index 6de1a15..88f4d21 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "socket.io": "~2.2.0", "ssh2": "~0.8.9", "validator": "^13.12.0", - "webssh2_client": "^0.2.21" + "webssh2_client": "^0.2.22" }, "scripts": { "start": "node index.js",