8 Commits

Author SHA1 Message Date
8096da5944 Merge branch 'main' into develop
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 2m25s
2024-12-10 20:29:50 +00:00
d032c01ecd Omit dev
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 31s
2024-09-25 15:14:56 +00:00
b3c050ed9e Fix CI
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 48s
2024-09-25 15:12:40 +00:00
0e9de8deb5 Fix env issue
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 4s
2024-09-25 15:01:18 +00:00
b382a89d38 Fix NPM repo permissions
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 41s
2024-09-18 16:51:49 +00:00
c4b75388d4 Fix NPM token
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 21s
2024-09-18 16:49:12 +00:00
f9f4860b14 Copy .npmrc to Docker image during build
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 21s
2024-09-18 16:42:32 +00:00
8d6782c90a Fix env
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 23s
2024-09-18 16:39:00 +00:00
4 changed files with 6 additions and 5 deletions

1
.npmrc
View File

@@ -1,2 +1 @@
@3t.network:registry=https://git.3t.network/api/packages/3t.network/npm/
//git.3t.network/api/packages/3t.network/npm/:_authToken=${NPM_TOKEN}

View File

@@ -13,7 +13,7 @@ WORKDIR /app
FROM base AS build
# Create app directory and copy the app
COPY package*.json tsconfig.json ./
COPY package*.json tsconfig.json .npmrc ./
# Install
RUN npm install
@@ -28,8 +28,8 @@ RUN npm run build
FROM node:lts-alpine
# Install dependencies but skip dev dependencies
COPY --from=build /app/package*.json ./
RUN npm install --only=production
COPY --from=build /app/package*.json /app/.npmrc ./
RUN npm install --only=production --omit=dev
# Copy the app
COPY --from=build /app/dist ./dist

View File

@@ -17,6 +17,7 @@
"license": "ISC",
"description": "",
"dependencies": {
"@3t.network/orchestra": "^1.0.0",
"axios": "^1.7.7",
"date-fns": "^3.6.0",
"discord.js": "^14.16.1",

View File

@@ -51,6 +51,7 @@ fi
# cd to the project root directory.
cd "$(dirname "$0")/.."
source .env
docker build -t butlerbot:$VERSION .
# Tag the Docker image.