2023-10-31 02:39:28 +01:00
|
|
|
FROM node:alpine
|
|
|
|
|
|
|
|
# Create app directory
|
|
|
|
WORKDIR /usr/bot/nyx
|
|
|
|
|
|
|
|
# Copy package.json and package-lock.json
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
|
|
# Install packages
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
# Copy the app code
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
# Build the project
|
|
|
|
RUN npm run all
|
|
|
|
|
|
|
|
# Expose ports
|
|
|
|
# EXPOSE 8080
|
|
|
|
|
|
|
|
# Run the application
|
|
|
|
CMD [ "node", "index.js" ]
|
2021-11-18 18:56:42 +01:00
|
|
|
# not sure what to run index.js or bot.js
|