Skip to content

Commit

Permalink
ycloud serverless proxy deploy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Dec 30, 2022
1 parent 49f09b3 commit baaa0f6
Show file tree
Hide file tree
Showing 5 changed files with 26,572 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CORS-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM node:slim
COPY ./package.json ./package.json
COPY ./package-lock.json ./package-lock.json
RUN npm ci
Expand Down
6 changes: 3 additions & 3 deletions CORS-proxy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export FOLDER_ID=b1gupi6tnkioua1397gl
export SA_ID=aje2oovtau2cioluf9tp


docker build -t ${CONTAINER_REPOSITORY_NAME}:latest . ;
docker push ${CONTAINER_REPOSITORY_NAME}:latest;
docker build -t ${CONTAINER_REPOSITORY_NAME} . ;
docker push ${CONTAINER_REPOSITORY_NAME};

yc sls container revisions deploy \
--folder-id ${FOLDER_ID} \
Expand All @@ -17,4 +17,4 @@ yc sls container revisions deploy \
--execution-timeout 30s \
--concurrency 8 \
--service-account-id ${SA_ID} \
--image "${CONTAINER_REPOSITORY_NAME}:latest";
--image "${CONTAINER_REPOSITORY_NAME}";
Loading

0 comments on commit baaa0f6

Please sign in to comment.