-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
7 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,5 @@ | |
** | ||
|
||
# Allow only the files that are actually needed | ||
!/package.json | ||
!/pnpm-lock.yaml | ||
!/Gemfile | ||
!/Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
extends: default | ||
|
||
ignore: | | ||
pnpm-lock.yaml | ||
rules: | ||
document-start: disable | ||
line-length: disable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ AllCops: | |
Exclude: | ||
- bin/* | ||
- db/schema.rb | ||
- node_modules/**/* | ||
- vendor/**/* | ||
TargetRubyVersion: 3.2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"files.exclude": { | ||
".pnpm-store/": true, | ||
"node_modules/": true, | ||
"tmp/": true | ||
}, | ||
"editor.tabSize": 2, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,9 @@ RUN if [[ $COMPOSE_PROFILES == *"solargraph"* ]]; then \ | |
bundle exec yard gems; \ | ||
fi | ||
|
||
FROM node:18-alpine3.18 as node-builder | ||
FROM node:18-alpine3.18 as node-downloader | ||
|
||
WORKDIR /app | ||
COPY package.json pnpm-lock.yaml ./ | ||
RUN corepack enable && corepack prepare --activate && pnpm install | ||
RUN npm install [email protected] -g | ||
|
||
FROM ruby:3.2.2-alpine3.18 | ||
|
||
|
@@ -30,17 +28,10 @@ RUN apk --no-cache add \ | |
|
||
RUN git config --global --add safe.directory /app | ||
|
||
# Setup node and pnpm | ||
ENV PATH=/node_modules/.bin:$PATH | ||
COPY --from=node-builder /usr/lib /usr/lib | ||
COPY --from=node-builder /usr/local/share /usr/local/share | ||
COPY --from=node-builder /usr/local/lib /usr/local/lib | ||
COPY --from=node-builder /usr/local/include /usr/local/include | ||
COPY --from=node-builder /usr/local/bin /usr/local/bin | ||
COPY --from=node-builder /root/.cache/node /root/.cache/node | ||
|
||
# Copy gems and js packages | ||
COPY --from=node-builder /app/node_modules /node_modules | ||
# Copy native npm package binaries | ||
COPY --from=node-downloader /usr/local/lib/node_modules/esbuild/bin/esbuild /usr/local/bin | ||
|
||
# Copy gems | ||
COPY --from=ruby-builder /usr/local/bundle /usr/local/bundle | ||
|
||
RUN echo "IRB.conf[:USE_AUTOCOMPLETE] = false" > ~/.irbrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
puma: bin/rails server -p 9000 -b 0.0.0.0 | ||
frontend: pnpm run build --watch=forever --color=true | ||
frontend: esbuild app/typescript/application.ts --target=chrome111,firefox111,safari16 --bundle --sourcemap --outdir=public/build --loader:.png=file --watch=forever --color=true | ||
good_job: bundle exec good_job --queues="scraping:1;e6_iqdb:1;variant_generation:5;default:1;submission_download:5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.