try to change back run build
This commit is contained in:
@@ -3,11 +3,13 @@ FROM node:18-alpine
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
RUN npm install -g serve
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["npm", "run", "build"]
|
# Serve the static files after building
|
||||||
|
CMD ["serve", "-s", "dist", "-l", "3000"]
|
Reference in New Issue
Block a user