Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker update arc64 #82

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading