discord_read_bot/Dockerfile

17 lines
261 B
Docker
Raw Permalink Normal View History

FROM node:23.1.0-alpine
RUN apk add --no-cache ffmpeg
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"]