Files
discord.js/packages/proxy-container/Dockerfile
2022-09-21 02:56:47 +02:00

19 lines
559 B
Docker

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.js ./
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"]