This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
know-it-all/client/Dockerfile

22 lines
284 B
Docker

FROM node:16-alpine AS build
WORKDIR /app
COPY ["package.json", "./"]
RUN npm install
COPY . .
RUN npm run build
FROM node:16-alpine AS production
WORKDIR /app
COPY --from=build /app/build ./build
RUN npm install -g serve
EXPOSE 3000/tcp
CMD ["npx", "serve", "-s", "build"]