2020-04-12 21:33:32 +00:00
|
|
|
FROM node:12-alpine as base
|
|
|
|
WORKDIR /app
|
|
|
|
FROM base as packages
|
|
|
|
ADD package.json yarn.lock /app/
|
|
|
|
RUN yarn --production --frozen-lockfile
|
2020-04-15 05:36:18 +00:00
|
|
|
FROM base as src
|
2020-04-12 21:33:32 +00:00
|
|
|
COPY --from="packages" /app/node_modules /app/node_modules
|
|
|
|
ADD . /app
|
2020-04-15 05:36:18 +00:00
|
|
|
FROM src as test
|
|
|
|
RUN yarn && \
|
|
|
|
node lib/binaryQuerystring/index.test.js
|
|
|
|
FROM src as final
|
2020-04-12 21:33:32 +00:00
|
|
|
CMD node index.js
|
2020-04-15 05:36:18 +00:00
|
|
|
|