content_demo / dockerfile
cryogenic22's picture
Create dockerfile
9047fae verified
FROM node:16-alpine
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install
COPY . ./
RUN npm run build
RUN npm install -g serve
# Set the command to serve the built app
CMD ["serve", "-s", "build", "-l", "7860"]
EXPOSE 7860