mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
feat: proxy container (#8000)
This commit is contained in:
18
packages/proxy-container/Dockerfile
Normal file
18
packages/proxy-container/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user