Skip to content

Commit 1894ed6

Browse files
author
mike dupont
committed
adding ignore files
1 parent 8ebca50 commit 1894ed6

File tree

3 files changed

+96
-146
lines changed

3 files changed

+96
-146
lines changed

.gitignore

+77-131
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
# Created by https://www.toptal.com/developers/gitignore/api/node
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=node
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
32

4-
### Node ###
5-
# Logs
6-
logs
7-
*.log
8-
npm-debug.log*
9-
yarn-debug.log*
10-
yarn-error.log*
11-
lerna-debug.log*
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/lib
128

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

1612
# Runtime data
1713
pids
@@ -24,12 +20,11 @@ lib-cov
2420

2521
# Coverage directory used by tools like istanbul
2622
coverage
27-
*.lcov
2823

2924
# nyc test coverage
3025
.nyc_output
3126

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

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

41-
# Compiled binary addons (https://nodejs.org/api/addons.html)
42-
build/Release
36+
# IDEs and editors
37+
.idea
38+
.project
39+
.classpath
40+
.c9/
41+
*.launch
42+
.settings/
43+
*.sublime-workspace
44+
45+
# IDE - VSCode
46+
.vscode/*
47+
!.vscode/settings.json
48+
!.vscode/tasks.json
49+
!.vscode/launch.json
50+
!.vscode/extensions.json
51+
52+
# misc
53+
.sass-cache
54+
connect.lock
55+
typings
56+
57+
# Logs
58+
logs
59+
*.log
60+
npm-debug.log*
61+
yarn-debug.log*
62+
yarn-error.log*
63+
4364

4465
# Dependency directories
4566
node_modules/
4667
jspm_packages/
4768

48-
# TypeScript v1 declaration files
49-
typings/
50-
51-
# TypeScript cache
52-
*.tsbuildinfo
53-
5469
# Optional npm cache directory
5570
.npm
5671

5772
# Optional eslint cache
5873
.eslintcache
5974

60-
# Microbundle cache
61-
.rpt2_cache/
62-
.rts2_cache_cjs/
63-
.rts2_cache_es/
64-
.rts2_cache_umd/
65-
6675
# Optional REPL history
6776
.node_repl_history
6877

@@ -74,124 +83,61 @@ typings/
7483

7584
# dotenv environment variables file
7685
.env
77-
.env.test
7886

79-
# parcel-bundler cache (https://parceljs.org/)
80-
.cache
81-
82-
# Next.js build output
87+
# next.js build output
8388
.next
8489

85-
# Nuxt.js build / generate output
86-
.nuxt
87-
dist
88-
89-
# Gatsby files
90-
.cache/
91-
# Comment in the public line in if your project uses Gatsby and not Next.js
92-
# https://nextjs.org/blog/next-9-1#public-directory-support
93-
# public
94-
95-
# vuepress build output
96-
.vuepress/dist
97-
98-
# Serverless directories
99-
.serverless/
100-
101-
# FuseBox cache
102-
.fusebox/
103-
104-
# DynamoDB Local files
105-
.dynamodb/
106-
107-
# TernJS port file
108-
.tern-port
109-
110-
# Stores VSCode versions used for testing VSCode extensions
111-
.vscode-test
90+
# Lerna
91+
lerna-debug.log
11292

113-
# End of https://www.toptal.com/developers/gitignore/api/node
114-
115-
# Created by https://www.toptal.com/developers/gitignore/api/macos
116-
# Edit at https://www.toptal.com/developers/gitignore?templates=macos
117-
118-
### macOS ###
119-
# General
93+
# System Files
12094
.DS_Store
121-
.AppleDouble
122-
.LSOverride
123-
124-
# Icon must end with two
125-
Icon
126-
127-
128-
# Thumbnails
129-
._*
130-
131-
# Files that might appear in the root of a volume
132-
.DocumentRevisions-V100
133-
.fseventsd
134-
.Spotlight-V100
135-
.TemporaryItems
136-
.Trashes
137-
.VolumeIcon.icns
138-
.com.apple.timemachine.donotpresent
139-
140-
# Directories potentially created on remote AFP share
141-
.AppleDB
142-
.AppleDesktop
143-
Network Trash Folder
144-
Temporary Items
145-
.apdisk
146-
147-
### macOS Patch ###
148-
# iCloud generated files
149-
*.icloud
95+
Thumbs.db# -*- mode: gitignore; -*-
96+
*~
97+
\#*\#
98+
/.emacs.desktop
99+
/.emacs.desktop.lock
100+
*.elc
101+
auto-save-list
102+
tramp
103+
.\#*
150104

151-
# End of https://www.toptal.com/developers/gitignore/api/macos
105+
# Org-mode
106+
.org-id-locations
107+
*_archive
152108

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

156-
### Windows ###
157-
# Windows thumbnail cache files
158-
Thumbs.db
159-
Thumbs.db:encryptable
160-
ehthumbs.db
161-
ehthumbs_vista.db
112+
# eshell files
113+
/eshell/history
114+
/eshell/lastdir
162115

163-
# Dump file
164-
*.stackdump
116+
# elpa packages
117+
/elpa/
165118

166-
# Folder config file
167-
[Dd]esktop.ini
119+
# reftex files
120+
*.rel
168121

169-
# Recycle Bin used on file shares
170-
$RECYCLE.BIN/
122+
# AUCTeX auto folder
123+
/auto/
171124

172-
# Windows Installer files
173-
*.cab
174-
*.msi
175-
*.msix
176-
*.msm
177-
*.msp
125+
# cask packages
126+
.cask/
127+
dist/
178128

179-
# Windows shortcuts
180-
*.lnk
129+
# Flycheck
130+
flycheck_*.el
181131

182-
# End of https://www.toptal.com/developers/gitignore/api/windows
132+
# server auth directory
133+
/server/
183134

184-
#Added by cargo
135+
# projectiles files
136+
.projectile
185137

186-
/target
187-
Cargo.lock
138+
# directory configuration
139+
.dir-locals.el
188140

189-
.pnp.*
190-
.yarn/*
191-
!.yarn/patches
192-
!.yarn/plugins
193-
!.yarn/releases
194-
!.yarn/sdks
195-
!.yarn/versions
141+
# network security
142+
/network-security.data
196143

197-
*.node

Dockerfile

+9-7
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,26 @@ RUN apt-get install -y \
1010

1111
# Update new packages
1212
RUN apt-get update
13+
RUN apt-get install -y curl git
1314

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

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

1920
RUN corepack enable
20-
COPY . /node_modules/fastembed
21-
WORKDIR /node_modules/fastembed
21+
COPY . /node_modules/tokenizers
22+
WORKDIR /node_modules/tokenizers
2223

23-
FROM base AS prod-deps
24+
#FROM base AS prod-deps
2425
RUN yarn install
2526

26-
FROM base AS build
27+
#FROM base AS build
2728
RUN yarn install --frozen-lockfile
29+
ENV PATH="/root/.cargo/bin:${PATH}"
2830
RUN yarn run build
2931
RUN yarn run prepublishOnly
3032

31-
FROM base
32-
COPY --from=prod-deps /node_modules/ /app/node_modules/
33-
COPY --from=build /node_modules/ /app/node_modules/
33+
#FROM base
34+
#COPY --from=prod-deps /node_modules/ /app/node_modules/
35+
#COPY --from=build /node_modules/ /app/node_modules/

Dockerfile.amd

+10-8
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,26 @@ RUN apt-get install -y \
1010

1111
# Update new packages
1212
RUN apt-get update
13+
RUN apt-get install -y curl git
1314

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

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

1920
RUN corepack enable
20-
COPY . /node_modules/fastembed
21-
WORKDIR /node_modules/fastembed
21+
COPY . /node_modules/tokenizers
22+
WORKDIR /node_modules/tokenizers
2223

23-
FROM base AS prod-deps
24+
#FROM base AS prod-deps
2425
RUN yarn install
2526

26-
FROM base AS build
27+
#FROM base AS build
2728
RUN yarn install --frozen-lockfile
28-
29+
ENV PATH="/root/.cargo/bin:${PATH}"
2930
RUN yarn run build
3031
RUN yarn run prepublishOnly
31-
FROM base
32-
COPY --from=prod-deps /node_modules/ /app/node_modules/
33-
COPY --from=build /node_modules/ /app/node_modules/
32+
33+
#FROM base
34+
#COPY --from=prod-deps /node_modules/ /app/node_modules/
35+
#COPY --from=build /node_modules/ /app/node_modules/

0 commit comments

Comments
 (0)