3 Commits

Author SHA1 Message Date
ecf4a07668 Merge pull request 'fix/ci' (#8) from fix/ci into main
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 43s
Reviewed-on: #8
2024-12-10 20:35:59 +00:00
97543dca9c Update .gitea/workflows/build-and-publish.yml 2024-12-10 20:35:39 +00:00
75e293f193 Update package.json 2024-12-10 20:35:05 +00:00
4 changed files with 5 additions and 6 deletions

3
.npmrc
View File

@@ -1 +1,2 @@
@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}

View File

@@ -13,7 +13,7 @@ WORKDIR /app
FROM base AS build
# Create app directory and copy the app
COPY package*.json tsconfig.json .npmrc ./
COPY package*.json tsconfig.json ./
# 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 /app/.npmrc ./
RUN npm install --only=production --omit=dev
COPY --from=build /app/package*.json ./
RUN npm install --only=production
# Copy the app
COPY --from=build /app/dist ./dist

View File

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