diff --git a/Dockerfile b/Dockerfile index f09b582..56f8a1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,10 @@ RUN yarn install COPY . . RUN yarn build -# Step 2: Serve the application using a Python HTTP server -FROM python:3-alpine +# Step 2: Serve the application using a static server +FROM node:18-alpine as serve-stage WORKDIR /app COPY --from=build-stage /app/dist /app +RUN yarn global add serve EXPOSE 8001 -CMD ["python3", "-m", "http.server", "8001"] +CMD ["serve", "-s", ".", "-l", "8001"]