discord_read_bot/Dockerfile

15 lines
230 B
Docker
Raw Normal View History

FROM node:23.1.0-alpine
WORKDIR /app
COPY package*.json ./
ARG NODE_ENV
ENV NODE_ENV=${NODE_ENV}
RUN if [ "$NODE_ENV" = "development" ]; then npm install; else npm install --only=production; fi
COPY . .
CMD ["npm", "start"]