Skip to content

Commit

Permalink
companion: install git so we can fetch tus-js-client fork (transloadi…
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop authored and kvz committed Apr 3, 2019
1 parent 5d14d01 commit c0d08da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /app
# * to optionally copy lock files that _might_ _not_ exist
ADD package.json package-*.json yarn.* /tmp/
RUN cd /tmp && apk --update add --virtual native-dep \
make gcc g++ python libgcc libstdc++ && \
make gcc g++ python libgcc libstdc++ git && \
npm install && \
apk del native-dep
RUN mkdir -p /app && cd /app && ln -nfs /tmp/node_modules
Expand All @@ -18,4 +18,4 @@ ENV PATH "${PATH}:/app/node_modules/.bin"
RUN npm run build
CMD ["node","/app/lib/standalone/start-server.js"]
# This can be overruled later
EXPOSE 3020
EXPOSE 3020
6 changes: 3 additions & 3 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM alpine:3.6

RUN apk add --update nodejs \
nodejs-npm
nodejs-npm

COPY package.json /app/package.json

WORKDIR /app

RUN apk --update add --virtual native-dep \
make gcc g++ python libgcc libstdc++ && \
make gcc g++ python libgcc libstdc++ git && \
npm install && \
apk del native-dep
RUN apk add bash

COPY . /app
RUN npm install -g nodemon
CMD ["npm","test"]
CMD ["npm","test"]

0 comments on commit c0d08da

Please sign in to comment.