17 lines
261 B
Docker
17 lines
261 B
Docker
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"]
|