diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f42cfee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Docker Parent Image +FROM zaherg/node-toolkit + +# Create Directory for the Container +WORKDIR /app + +# Copy the files we need to our new Directory +ADD . /app + +# Expose the port outside of the container +EXPOSE 3000 + +# Grab dependencies and transpile src directory to dist +RUN npm install && tsc + +# Start the server +ENTRYPOINT ["node", "dist/"] diff --git a/package.json b/package.json index f6c0df7..4c9c79c 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,10 @@ "version": "1.0.0", "description": "Intro to docker with TypeScript", "main": "index.js", + "repository": { + "type": "git", + "url": "git://github.com/Reidweb1/TypeScriptStarter.git" + }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },