mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
19 lines
560 B
Docker
19 lines
560 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.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.mjs"]
|