Dockerfile

This commit is contained in:
h z
2024-12-03 13:12:44 +00:00
parent d035a781ae
commit 9b764405ab

View File

@@ -1,4 +1,13 @@
FROM ubuntu:latest
LABEL authors="hzhang"
FROM node:18 as build-stage
WORKDIR /app
ENTRYPOINT ["top", "-b"]
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]