Merge pull request #398 from mirumee/feature/dockerfile-dev

Add dockerfile for development purposes
This commit is contained in:
Marcin Gębala 2020-02-07 11:03:36 +01:00 committed by GitHub
commit 7790fef846
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
Dockerfile.dev Normal file
View file

@ -0,0 +1,15 @@
FROM node:10
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
ARG APP_MOUNT_URI
ARG API_URI
ARG STATIC_URL
ENV API_URI ${API_URI:-http://localhost:8000/graphql/}
ENV APP_MOUNT_URI ${APP_MOUNT_URI:-/dashboard/}
ENV STATIC_URL ${STATIC_URL:-/dashboard/}
EXPOSE 9000
CMD npm start -- --host 0.0.0.0