19 lines
366 B
Docker
19 lines
366 B
Docker
FROM node:16 AS v3-ts
|
|
|
|
# install dependencies
|
|
COPY package.json package.json
|
|
COPY yarn.lock yarn.lock
|
|
RUN yarn install --network-concurrency 1
|
|
|
|
# build typescript code
|
|
COPY src src
|
|
COPY test test
|
|
COPY tsconfig.json tsconfig.json
|
|
RUN yarn build
|
|
|
|
FROM node:16 AS v3-liq
|
|
|
|
COPY --from=v3-ts node_modules node_modules
|
|
COPY --from=v3-ts lib lib
|
|
|
|
CMD node lib/liquidator.js |