Skip to content

Commit

Permalink
Updated @micthiesen/mitools to fix issues and improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
micthiesen committed Oct 27, 2024
1 parent e4f059a commit 43e2b42
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 21 deletions.
14 changes: 1 addition & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
# Use a specific Node.js version as a base image
FROM node:20.16.0-slim

# Enable corepack
RUN corepack enable

# Set working directory
WORKDIR /app

# Copy package.json and pnpm-lock.yaml
COPY package.json pnpm-lock.yaml ./

# Install pnpm and project dependencies
RUN corepack prepare pnpm@latest --activate && pnpm install

# Copy the rest of the application code
COPY . .

# Build the TypeScript code
RUN pnpm run build

# Expose port 3000
ENV DOCKERIZED=true
EXPOSE 3000

# Command to run the application
CMD ["node", "dist/index.js"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"docker:dev": "docker run -p 3000:3000 --rm --name omni-notify omni-notify"
},
"dependencies": {
"@micthiesen/mitools": "^1.1.6",
"@micthiesen/mitools": "^1.1.7",
"date-fns": "^4.1.0",
"html-entities": "^2.5.2",
"node-cron": "^3.0.3",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { baseConfigSchema, logConfig } from "@micthiesen/mitools/config";
import { baseConfigSchema, logConfig, stringBoolean } from "@micthiesen/mitools/config";
import { z } from "zod";

const stringBoolean = (value: string): boolean => value.toLowerCase() === "true";
const commaSeparatedString = z
.string()
.optional()
Expand Down

0 comments on commit 43e2b42

Please sign in to comment.