Dockerfile addition from PR #796 (#799)

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile
This commit is contained in:
slicepaperwords
2019-05-12 11:54:38 -05:00
committed by John Furrow
parent 91ffaaf89e
commit 52805c0525

View File

@@ -11,6 +11,8 @@ COPY package.json \
package-lock.json \
.babelrc \
.eslintrc.js \
.eslintignore \
.prettierrc \
ABOUT.md \
$WORKDIR
RUN apk add --no-cache --virtual=build-dependencies \
@@ -22,6 +24,7 @@ RUN apk add --no-cache --virtual=build-dependencies \
COPY client ./client
COPY server ./server
COPY shared ./shared
COPY scripts ./scripts
COPY config.docker.js ./config.js
RUN npm run build && \
npm prune --production