Add Discordx init

Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
Louis Hollingworth 2023-05-02 19:59:36 +01:00
parent 6c9841ced0
commit 429504787a
Signed by: lucxjo
GPG key ID: B140F8923EF88DA9
9 changed files with 874 additions and 0 deletions

36
Dockerfile Normal file
View file

@ -0,0 +1,36 @@
## build runner
FROM node:lts-alpine as build-runner
# Set temp directory
WORKDIR /tmp/app
# Move package.json
COPY package.json .
# Install dependencies
RUN npm install
# Move source files
COPY src ./src
COPY tsconfig.json .
# Build project
RUN npm run build
## production runner
FROM node:lts-alpine as prod-runner
# Set work directory
WORKDIR /app
# Copy package.json from build-runner
COPY --from=build-runner /tmp/app/package.json /app/package.json
# Install dependencies
RUN npm install --omit=dev
# Move build files
COPY --from=build-runner /tmp/app/build /app/build
# Start bot
CMD [ "npm", "run", "start" ]