Skip to content

Commit

Permalink
Docker Build Fixes for new dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hillct committed Nov 27, 2017
1 parent 8fc928c commit b3ac3d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ ARG VCS_URL
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Gun - Offline First, Javascript Graph Database" \
# org.label-schema.description="Let it be pulled from Readme.md..." \
org.label-schema.url="http://gun.js.org" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.vendor="The Gun Database Team" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
# org.label-schema.description="Let it be pulled from Readme.md..." \
WORKDIR /app
ADD . .
ENV NPM_CONFIG_LOGLEVEL warn
RUN apk update && apk upgrade \
&& apk add --no-cache ca-certificates nodejs \
&& npm install \
&& rm -rf /var/cache/* -rf /tmp/npm*
&& apk add --no-cache --virtual .build-dependencies python make g++ \
&& npm install \
&& apk del .build-dependencies && rm -rf /var/cache/* /tmp/npm*
EXPOSE 8080
CMD ["npm","start"]

0 comments on commit b3ac3d5

Please sign in to comment.