Skip to content

Commit

Permalink
remove Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
sborms committed Oct 18, 2023
1 parent e729d98 commit cbcab11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ This is the `Streamlit` frontend, which is deployed to **Streamlit Cloud**. Chan

## AWS infrastructure

The following AWS cloud resources are used to support the project:
Following combination of AWS cloud resources was initially used to support the project:
- **S3** for storing several artifacts
- **Elastic Container Registry (ECR)** for storing Docker images (in this case the Docker image for the FastAPI backend)
- **Elastic Container Service (ECS)** of type **Fargate** for running a Docker container
- **Application Load Balancer (ALB)** for routing traffic to the Fargate task(s)

The total cost is about 0.35 USD per day, almost entirely coming from ECS (without any auto scaling).
The total cost amounted to about 0.35 USD per day, almost entirely coming from ECS (without any auto scaling).

_In the meantime, the backend API has been transferred from ECS to a free alternative called [Render](https://render.com). This service fully takes care of deployment by pointing to a Dockerfile. [Vercel](https://vercel.com) was another free option but it complained about the size of the Docker image._

## Refresh

Expand Down
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY api/. /api

COPY src/. /api/src

# COPY .env /api
COPY .env /api

# RUN pip install --upgrade pip
RUN pip install --index-url https://download.pytorch.org/whl/cpu torch==2.0.1+cpu
Expand Down
11 changes: 0 additions & 11 deletions api/vercel.json

This file was deleted.

0 comments on commit cbcab11

Please sign in to comment.