Skip to content

Commit

Permalink
Merge pull request #82 from ankitrout2903/fresh
Browse files Browse the repository at this point in the history
docker update arc64
  • Loading branch information
hahahumble authored Oct 3, 2023
2 parents c52c82f + ef17460 commit 215e3a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:alpine as builder
# Use the ARM64 Node.js image as the builder stage
FROM node:18-bullseye-slim AS builder

ARG VITE_OPENAI_API_KEY=REPLACE_WITH_YOUR_OWN
ARG VITE_OPENAI_HOST=REPLACE_WITH_YOUR_OWN
Expand All @@ -22,8 +23,11 @@ RUN yarn install
COPY . .
RUN yarn build

FROM nginx:alpine
# Use a smaller ARM64-compatible base image for the final stage
FROM arm64v8/nginx:alpine

COPY nginx.conf /etc/nginx/nginx.conf
WORKDIR /usr/share/nginx/html
COPY --from=builder /app/dist .

ENTRYPOINT ["nginx", "-g", "daemon off;"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ You can utilize this app to improve your language speaking skills or simply have
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhahahumble%2Fspeechgpt&env=VITE_OPENAI_API_KEY,VITE_OPENAI_HOST,VITE_AWS_REGION,VITE_AWS_ACCESS_KEY_ID,VITE_AWS_ACCESS_KEY,VITE_AZURE_REGION,VITE_AZURE_KEY&envDescription=If%20you%20do%20not%20want%20to%20provide%20a%20value%2C%20use%20REPLACE_WITH_YOUR_OWN.&project-name=speechgpt&repository-name=speechgpt)

### Deploying with Docker
1. Pull the Docker image.
1. Pull the Docker image:arm64.
```bash
docker pull hahahumble/speechgpt
```
Expand All @@ -72,7 +72,7 @@ docker run -d -p 8080:8080 --name speechgpt hahahumble/speechgpt
### Building and running the Docker image
1. Build the Docker image.
```bash
docker build -t speechgpt .
docker build -t speechgpt:arm64 -f Dockerfile .
```

2. Run the Docker container.
Expand Down

1 comment on commit 215e3a0

@vercel
Copy link

@vercel vercel bot commented on 215e3a0 Oct 3, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

speechgpt – ./

speechgpt-alpha.vercel.app
speechgpt-git-main-hahahumble.vercel.app
speechgpt-hahahumble.vercel.app

Please sign in to comment.