diff --git a/Dockerfile b/Dockerfile index 684b75e..c9e5acf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,13 @@ -FROM ubuntu:latest -LABEL authors="hzhang" +FROM node:18 as build-stage +WORKDIR /app -ENTRYPOINT ["top", "-b"] \ No newline at end of file +COPY package*.json ./ + +RUN npm install + +COPY . . +RUN npm run build + +EXPOSE 3000 + +CMD ["npm", "start"] \ No newline at end of file