Compare commits
7 Commits
fix/ci
...
d032c01ecd
| Author | SHA1 | Date | |
|---|---|---|---|
| d032c01ecd | |||
| b3c050ed9e | |||
| 0e9de8deb5 | |||
| b382a89d38 | |||
| c4b75388d4 | |||
| f9f4860b14 | |||
| 8d6782c90a |
3
.npmrc
3
.npmrc
@@ -1,2 +1 @@
|
|||||||
@3t.network:registry=https://git.3t.network/api/packages/3t.network/npm/
|
@3t.network:registry=https://git.3t.network/api/packages/3t.network/npm/
|
||||||
//git.3t.network/api/packages/3t.network/npm/:_authToken=${NPM_TOKEN}
|
|
||||||
@@ -13,7 +13,7 @@ WORKDIR /app
|
|||||||
FROM base AS build
|
FROM base AS build
|
||||||
|
|
||||||
# Create app directory and copy the app
|
# Create app directory and copy the app
|
||||||
COPY package*.json tsconfig.json ./
|
COPY package*.json tsconfig.json .npmrc ./
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
RUN npm install
|
RUN npm install
|
||||||
@@ -28,8 +28,8 @@ RUN npm run build
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
|
|
||||||
# Install dependencies but skip dev dependencies
|
# Install dependencies but skip dev dependencies
|
||||||
COPY --from=build /app/package*.json ./
|
COPY --from=build /app/package*.json /app/.npmrc ./
|
||||||
RUN npm install --only=production
|
RUN npm install --only=production --omit=dev
|
||||||
|
|
||||||
# Copy the app
|
# Copy the app
|
||||||
COPY --from=build /app/dist ./dist
|
COPY --from=build /app/dist ./dist
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"description": "",
|
"description": "",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@3t.network/orchestra": "^1.0.0",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
"date-fns": "^3.6.0",
|
"date-fns": "^3.6.0",
|
||||||
"discord.js": "^14.16.1",
|
"discord.js": "^14.16.1",
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ fi
|
|||||||
|
|
||||||
# cd to the project root directory.
|
# cd to the project root directory.
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
source .env
|
||||||
docker build -t butlerbot:$VERSION .
|
docker build -t butlerbot:$VERSION .
|
||||||
|
|
||||||
# Tag the Docker image.
|
# Tag the Docker image.
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export async function execute(
|
|||||||
try {
|
try {
|
||||||
// Create image generation prediction
|
// Create image generation prediction
|
||||||
const prediction = await replicate.predictions.create({
|
const prediction = await replicate.predictions.create({
|
||||||
model: 'black-forest-labs/flux-1.1-pro-ultra',
|
model: 'black-forest-labs/flux-schnell',
|
||||||
input: { prompt },
|
input: { prompt },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user