Initial setup for phtantomjs

This commit is contained in:
Eliot Berriot 2018-01-08 22:47:14 +01:00
parent 2ec36d75b5
commit ede72d62b0
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
4 changed files with 10 additions and 25 deletions

View File

@ -3,9 +3,7 @@ version: '2'
services:
front:
build:
dockerfile: docker/Dockerfile.dev
context: ./front
build: front
env_file: .env.dev
environment:
- "HOST=0.0.0.0"

View File

@ -1,13 +1,11 @@
FROM node:6-alpine
FROM node:6
EXPOSE 8080
RUN mkdir /app
WORKDIR /app
WORKDIR /app/
ADD package.json .
RUN npm install --only=production
RUN npm install --only=dev
VOLUME ["/app/node_modules"]
COPY . .
RUN npm install
ADD . .
RUN npm run build
CMD ["npm", "run", "dev"]

View File

@ -1,13 +0,0 @@
FROM node:6-alpine
EXPOSE 8080
RUN mkdir /app
WORKDIR /app
ADD package.json .
RUN npm install
VOLUME ["/app/node_modules"]
CMD ["npm", "run", "dev"]

View File

@ -18,6 +18,8 @@ module.exports = function (config) {
preprocessors: {
'./index.js': ['webpack', 'sourcemap']
},
captureTimeout: 5000,
retryLimit: 1,
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true