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 c1aeeb3 commit 356c3c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

1 comment on commit 356c3c3

@vercel
Copy link

@vercel vercel bot commented on 356c3c3 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.