Skip to content

Commit

Permalink
Fix mockserver
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Dec 13, 2017
1 parent f9b609d commit 2b27464
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ version: '3.2'
services:
mockserver:
build: mockserver
command: http-server -p 9000 --cors -c-1
ports: ['9000:9000']
volumes: ['./mockserver/public:/home/public']
volumes:
- './mockserver/public:/home/public'
- './mockserver/server.py:/home/server.py'
web:
build:
context: .
Expand Down
5 changes: 3 additions & 2 deletions mockserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:8.5.0
FROM python:2.7
WORKDIR /home
EXPOSE 9000
RUN npm install http-server -g
ADD server.py server.py
CMD cd public && python ../server.py 9000

0 comments on commit 2b27464

Please sign in to comment.