Skip to content

Commit

Permalink
👷🏻Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
iyadh committed Jan 5, 2024
1 parent c2f9654 commit b12f067
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ RUN yarn install
COPY . .
RUN yarn build

# Step 2: Serve the application using a static server
FROM node:18-alpine as serve-stage
# Step 2: Serve the application using a Python HTTP server
FROM python:3-alpine
WORKDIR /app
COPY --from=build-stage /app/dist /app
RUN yarn global add serve
EXPOSE 8001
CMD ["serve", "-s", ".", "-l", "8001"]
CMD ["python3", "-m", "http.server", "8001"]

1 comment on commit b12f067

@vercel
Copy link

@vercel vercel bot commented on b12f067 Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.