fetch-dht/Dockerfile

15 lines
334 B
Docker

FROM node:12-alpine as base
WORKDIR /app
FROM base as packages
ADD package.json yarn.lock /app/
RUN yarn --production --frozen-lockfile
FROM base as src
COPY --from="packages" /app/node_modules /app/node_modules
ADD . /app
FROM src as test
RUN yarn && \
node lib/binaryQuerystring/index.test.js
FROM src as final
CMD node index.js