Compare commits
12 Commits
feature/ch
...
d032c01ecd
| Author | SHA1 | Date | |
|---|---|---|---|
| d032c01ecd | |||
| b3c050ed9e | |||
| 0e9de8deb5 | |||
| b382a89d38 | |||
| c4b75388d4 | |||
| f9f4860b14 | |||
| 8d6782c90a | |||
| 00b658468a | |||
| 9859ff4d96 | |||
| 816c1c54ba | |||
| befcb48a44 | |||
| 9b885e1d66 |
@@ -5,7 +5,6 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
- feature/devops
|
||||
|
||||
jobs:
|
||||
build_and_push:
|
||||
|
||||
1
.npmrc
Normal file
1
.npmrc
Normal file
@@ -0,0 +1 @@
|
||||
@3t.network:registry=https://git.3t.network/api/packages/3t.network/npm/
|
||||
@@ -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
|
||||
|
||||
11
package-lock.json
generated
11
package-lock.json
generated
@@ -9,6 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@3t.network/orchestra": "^1.0.0",
|
||||
"axios": "^1.7.7",
|
||||
"date-fns": "^3.6.0",
|
||||
"discord.js": "^14.16.1",
|
||||
@@ -29,6 +30,16 @@
|
||||
"typescript": "^5.6.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@3t.network/orchestra": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://git.3t.network/api/packages/3t.network/npm/%403t.network%2Forchestra/-/1.0.0/orchestra-1.0.0.tgz",
|
||||
"integrity": "sha512-NRjD9wum3USCjPTM2Z2uw/vougkzfLAshZriMD19I9Ax9Zeu+qfOkUWd/ZNSgh8ruUbiezxcisBjLIWWRMhj8w==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"axios": "^1.7.7",
|
||||
"form-data": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@cspotcode/source-map-support": {
|
||||
"version": "0.8.1",
|
||||
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user