Skip to content

Commit

Permalink
modified dockerfile and xformers added to requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
peytontolbert committed Mar 7, 2024
1 parent c76fa4e commit 3a5b643
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ COPY requirements.txt .
RUN pip install -r requirements.txt

# Copy the rest of your application's code into the container
COPY . /swarms_cloud
WORKDIR /swarm_cloud/servers
COPY . /swarms_root
WORKDIR /swarm_root/servers

# Expose the port the app runs on
EXPOSE 8000
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ sse-starlette
uvicorn
loguru
pydantic
stripe
stripe
xformers
6 changes: 3 additions & 3 deletions swarm_cloud.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ resource "aws_security_group" "model_api_sg" {
vpc_id = aws_vpc.main.id

ingress {
from_port = 80
to_port = 80
from_port = 8000
to_port = 8000
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
Expand Down Expand Up @@ -140,7 +140,7 @@ resource "aws_lb_target_group" "model_api_tg" {

resource "aws_lb_listener" "model_api_listener" {
load_balancer_arn = aws_lb.model_api_lb.arn
port = 80
port = 8000
protocol = "HTTP"

default_action {
Expand Down

0 comments on commit 3a5b643

Please sign in to comment.