Verified Commit ede72d62 authored by Eliot Berriot's avatar Eliot Berriot 💬

Initial setup for phtantomjs

parent 2ec36d75
......@@ -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"
......
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"]
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"]
......@@ -18,6 +18,8 @@ module.exports = function (config) {
preprocessors: {
'./index.js': ['webpack', 'sourcemap']
},
captureTimeout: 5000,
retryLimit: 1,
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment