Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Mar 19, 2019
1 parent 92fcca1 commit 0f60f0f
Show file tree
Hide file tree
Showing 8 changed files with 876 additions and 1,613 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
designAssets/
screenshots/
node_modules
packages/web/src
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:10

WORKDIR /app
COPY . /app
RUN npm i

CMD ["node", "packages/client/bin/streamhut", "server"]
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
all: build

build: build/docker

bootstrap:
@lerna bootstrap

Expand All @@ -12,3 +16,9 @@ server:

web:
@(cd packages/web && npm start)

build/docker:
@docker build -t miguelmota/streamhut .

start/docker:
@docker run -e PORT=3000 -p 3000:3000 miguelmota/streamhut:latest
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f60f0f

Please sign in to comment.