Skip to content
Permalink
Browse files

feat: dockerize web

  • Loading branch information...
moul committed May 9, 2019
1 parent 3ca3e38 commit 684f4d900dda3037914531a718a30bed9044eeff
Showing with 29 additions and 1 deletion.
  1. +3 −0 .dockerignore
  2. +2 −0 .gitignore
  3. +9 −1 docker-compose.yml
  4. +15 −0 web/Dockerfile
@@ -1,3 +1,6 @@
node_modules
package-lock.json
yarn.lock
.circleci/
test/
.git/
@@ -1,3 +1,5 @@
.env

vendor/
*~
*#
@@ -22,4 +22,12 @@ services:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: uns3cur3
MYSQL_DATABASE: pathwar
MYSQL_DATABASE: pathwar

web:
build: web
ports:
- 3000:3000
- 3001:3001
environment:
- NODE_ENV=development
@@ -0,0 +1,15 @@
FROM node:11-stretch

WORKDIR /app

COPY package*.json ./

RUN npm install
#RUN npm ci --only=production

COPY . .

EXPOSE 3000 3001
CMD [ "npm", "start" ]

# FIXME: add build step for production

0 comments on commit 684f4d9

Please sign in to comment.
You can’t perform that action at this time.