Skip to content

Commit

Permalink
adding ignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Jan 14, 2025
1 parent 8ebca50 commit 1894ed6
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 146 deletions.
208 changes: 77 additions & 131 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# Created by https://www.toptal.com/developers/gitignore/api/node
# Edit at https://www.toptal.com/developers/gitignore?templates=node
# See http://help.github.com/ignore-files/ for more about ignoring files.

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# compiled output
/dist
/tmp
/out-tsc
/lib

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Model files
/local_cache

# Runtime data
pids
Expand All @@ -24,12 +20,11 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
Expand All @@ -38,31 +33,45 @@ bower_components
# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# IDEs and editors
.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
.sass-cache
connect.lock
typings

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*


# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

Expand All @@ -74,124 +83,61 @@ typings/

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
# next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# Lerna
lerna-debug.log

# End of https://www.toptal.com/developers/gitignore/api/node

# Created by https://www.toptal.com/developers/gitignore/api/macos
# Edit at https://www.toptal.com/developers/gitignore?templates=macos

### macOS ###
# General
# System Files
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud
Thumbs.db# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# End of https://www.toptal.com/developers/gitignore/api/macos
# Org-mode
.org-id-locations
*_archive

# Created by https://www.toptal.com/developers/gitignore/api/windows
# Edit at https://www.toptal.com/developers/gitignore?templates=windows
# flymake-mode
*_flymake.*

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# eshell files
/eshell/history
/eshell/lastdir

# Dump file
*.stackdump
# elpa packages
/elpa/

# Folder config file
[Dd]esktop.ini
# reftex files
*.rel

# Recycle Bin used on file shares
$RECYCLE.BIN/
# AUCTeX auto folder
/auto/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# cask packages
.cask/
dist/

# Windows shortcuts
*.lnk
# Flycheck
flycheck_*.el

# End of https://www.toptal.com/developers/gitignore/api/windows
# server auth directory
/server/

#Added by cargo
# projectiles files
.projectile

/target
Cargo.lock
# directory configuration
.dir-locals.el

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# network security
/network-security.data

*.node
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,26 @@ RUN apt-get install -y \

# Update new packages
RUN apt-get update
RUN apt-get install -y curl git

# Get Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y

RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc

RUN corepack enable
COPY . /node_modules/fastembed
WORKDIR /node_modules/fastembed
COPY . /node_modules/tokenizers
WORKDIR /node_modules/tokenizers

FROM base AS prod-deps
#FROM base AS prod-deps
RUN yarn install

FROM base AS build
#FROM base AS build
RUN yarn install --frozen-lockfile
ENV PATH="/root/.cargo/bin:${PATH}"
RUN yarn run build
RUN yarn run prepublishOnly

FROM base
COPY --from=prod-deps /node_modules/ /app/node_modules/
COPY --from=build /node_modules/ /app/node_modules/
#FROM base
#COPY --from=prod-deps /node_modules/ /app/node_modules/
#COPY --from=build /node_modules/ /app/node_modules/
18 changes: 10 additions & 8 deletions Dockerfile.amd
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,26 @@ RUN apt-get install -y \

# Update new packages
RUN apt-get update
RUN apt-get install -y curl git

# Get Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y

RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc

RUN corepack enable
COPY . /node_modules/fastembed
WORKDIR /node_modules/fastembed
COPY . /node_modules/tokenizers
WORKDIR /node_modules/tokenizers

FROM base AS prod-deps
#FROM base AS prod-deps
RUN yarn install

FROM base AS build
#FROM base AS build
RUN yarn install --frozen-lockfile

ENV PATH="/root/.cargo/bin:${PATH}"
RUN yarn run build
RUN yarn run prepublishOnly
FROM base
COPY --from=prod-deps /node_modules/ /app/node_modules/
COPY --from=build /node_modules/ /app/node_modules/

#FROM base
#COPY --from=prod-deps /node_modules/ /app/node_modules/
#COPY --from=build /node_modules/ /app/node_modules/

0 comments on commit 1894ed6

Please sign in to comment.