diff --git a/apps/api/deploy.yml b/apps/api/deploy.yml index 9067ad4c4..0f632041c 100644 --- a/apps/api/deploy.yml +++ b/apps/api/deploy.yml @@ -6,19 +6,8 @@ services: image: : depends-on: cloud-sql-proxy env: - - GITHUB_PAT= - - AKASH_SANDBOX_DATABASE_CS= - - USER_DATABASE_CS= - - SECRET_TOKEN= - - NETWORK= - - MASTER_WALLET_MNEMONIC= - - POSTGRES_DB_URI= - - ANONYMOUS_USER_TOKEN_SECRET= - - SENTRY_DSN= + - DOPPLER_TOKEN= - SENTRY_SERVER_NAME= - - DEPLOYMENT_ENV= - - STRIPE_SECRET_KEY= - - STRIPE_WEBHOOK_SECRET= expose: - port: 3080 as: 80 diff --git a/docker/Dockerfile.node b/docker/Dockerfile.node index 630ccb489..1aaeb1077 100644 --- a/docker/Dockerfile.node +++ b/docker/Dockerfile.node @@ -44,11 +44,15 @@ RUN npm ci --workspace $WORKSPACE --omit=dev RUN apk add --no-cache libcap; \ setcap cap_net_bind_service=+ep `readlink -f \`which node\`` +RUN wget -q -t3 'https://packages.doppler.com/public/cli/rsa.8004D9FF50437357.key' -O /etc/apk/keys/cli@doppler-8004D9FF50437357.rsa.pub && \ + echo 'https://packages.doppler.com/public/cli/alpine/any-version/main' | tee -a /etc/apk/repositories && \ + apk add doppler + USER $APP_USER WORKDIR /app/$WORKSPACE -CMD ["node", "dist/server.js"] +CMD ["doppler", "run", "--", "node", "dist/server.js"] FROM production AS production-nginx @@ -62,4 +66,4 @@ RUN apk add --no-cache libcap nginx openssl \ COPY $WORKSPACE/nginx.conf /etc/nginx/nginx.conf -CMD sed -i "s/127.0.0.1/$(hostname -i)/" /etc/nginx/nginx.conf && sed -i "s/:3000/:$PORT/" /etc/nginx/nginx.conf && nginx && node dist/server.js \ No newline at end of file +CMD sed -i "s/127.0.0.1/$(hostname -i)/" /etc/nginx/nginx.conf && sed -i "s/:3000/:$PORT/" /etc/nginx/nginx.conf && nginx && doppler run -- node dist/server.js \ No newline at end of file