Skip to content

Commit

Permalink
Update arm & arm64 dockerfiles && update planet.yml compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Jul 12, 2023
1 parent 57e7292 commit 4db7d3b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
6 changes: 2 additions & 4 deletions docker/chat-api/amd64-Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM treehouses/node

RUN apk update ;\
apk add --no-cache bash curl git jq ca-certificates tree
apk add --no-cache bash curl git jq ca-certificates

WORKDIR /usr/share/gpt-proxy

Expand All @@ -13,9 +13,7 @@ RUN npm install
COPY ./gpt-proxy/src ./src/
COPY ./gpt-proxy/tsconfig.json ./tsconfig.json

RUN tree

# # Build the TypeScript code
# RUN cd gpt-proxy && npm run build
# RUN npm run build

CMD ["npm", "run", "dev"]
10 changes: 8 additions & 2 deletions docker/chat-api/arm-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ FROM treehouses/node-tags:arm
RUN apk update ;\
apk add --no-cache bash curl git jq ca-certificates;

WORKDIR /root
WORKDIR /usr/share/gpt-proxy

CMD bash ./docker-entrypoint.sh
COPY ./gpt-proxy/package*.json ./
RUN npm install

COPY ./gpt-proxy/src ./src/
COPY ./gpt-proxy/tsconfig.json ./tsconfig.json

CMD ["npm", "run", "dev"]
10 changes: 8 additions & 2 deletions docker/chat-api/arm64-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ FROM treehouses/node-tags:arm64
RUN apk update ;\
apk add --no-cache bash curl git jq ca-certificates;

WORKDIR /root
WORKDIR /usr/share/gpt-proxy

CMD bash ./docker-entrypoint.sh
COPY ./gpt-proxy/package*.json ./
RUN npm install

COPY ./gpt-proxy/src ./src/
COPY ./gpt-proxy/tsconfig.json ./tsconfig.json

CMD ["npm", "run", "dev"]
13 changes: 6 additions & 7 deletions docker/planet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ services:
- couchdb
environment:
- COUCHDB_HOST=http://couchdb:5984
# chat-api:
# image: treehouses/chat-api:local
# ports:
# - "5000:5000"
# environment:
# - COUCHDB_URL=http://couchdb:5984
# - OPENAI_API_KEY=$OPENAI_API_KEY
chat-api:
image: treehouses/planet:chat-api-local
ports:
- "5000:5000"
env_file:
- .chat.env
planet:
image: treehouses/planet:local
ports:
Expand Down

0 comments on commit 4db7d3b

Please sign in to comment.