feat: proxy container (#8000)

This commit is contained in:
DD
2022-06-18 00:29:50 +03:00
committed by GitHub
parent 0a138dab95
commit 2681929e42
25 changed files with 652 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
FROM node:16-alpine
WORKDIR /usr/proxy
# First copy over dependencies separate from src for better caching
COPY package.json yarn.lock tsconfig.json .yarnrc.yml tsup.config.ts ./
COPY .yarn ./.yarn
COPY ./packages/proxy-container/package.json ./packages/proxy-container/
WORKDIR /usr/proxy/packages/proxy-container
RUN yarn workspaces focus
# Next up, copy over our src and build it, then prune deps for prod
COPY ./packages/proxy-container ./
RUN yarn build && yarn workspaces focus --production
CMD ["node", "--enable-source-maps", "./dist/index.js"]