Skip to content

Commit

Permalink
🧹 chore: update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Oct 24, 2022
1 parent 6cc8e75 commit 8d829b1
Show file tree
Hide file tree
Showing 30 changed files with 386 additions and 3,157 deletions.
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.git
.github
.svelte-kit
build
node_modules
.eslintrc.cjs
.gitignore
.npmrc
.prettierrc
bun.lockb
Dockerfile
README.md
stats.html
30 changes: 9 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:16-alpine as builder
FROM node:18-alpine as builder

WORKDIR /usr/app
WORKDIR /app

RUN npm install -g pnpm

Expand All @@ -14,9 +14,9 @@ COPY . .
RUN pnpm build

# * ====================
FROM node:16-alpine as modules
FROM node:18-alpine as modules

WORKDIR /usr/app
WORKDIR /app

RUN npm install -g pnpm

Expand All @@ -27,27 +27,15 @@ RUN pnpm install --production
RUN pnpm prune --production

# * ====================
FROM alpine:3.15 as main
FROM gcr.io/distroless/nodejs:18

RUN apk --no-cache add bash nodejs varnish nginx
WORKDIR /app/

WORKDIR /usr/app/

COPY --from=modules /usr/app/node_modules node_modules
COPY --from=builder /usr/app/build build
COPY --from=modules /app/node_modules node_modules
COPY --from=builder /app/build build
COPY package.json package.json

COPY ./ops/varnish /etc/default/varnish
COPY ./ops/default.vcl /etc/varnish/default.vcl
COPY ./ops/default.conf /etc/nginx/conf.d/default.conf
COPY ./ops/parallel.sh .
COPY ./ops/start.sh .

RUN chmod 555 start.sh
RUN chmod 555 parallel.sh

ENV NODE_ENV production
ENV PORT=3001

CMD ["./start.sh"]
CMD ["build/index.js"]
EXPOSE 3000
Binary file removed bun.lockb
Binary file not shown.
139 changes: 0 additions & 139 deletions ops/default.conf

This file was deleted.

24 changes: 0 additions & 24 deletions ops/default.vcl

This file was deleted.

14 changes: 0 additions & 14 deletions ops/parallel.sh

This file was deleted.

10 changes: 0 additions & 10 deletions ops/start.sh

This file was deleted.

25 changes: 0 additions & 25 deletions ops/varnish

This file was deleted.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"start": "node ./build"
},
"dependencies": {
"@builder.io/partytown": "^0.6.4",
"@builder.io/partytown": "^0.7.1",
"@saltyaom/gql": "1.3.2",
"@saltyaom/gql-inmemory-cache": "1.3.0",
"@saltyaom/gql-local-cache": "1.3.0",
"dayjs": "^1.11.4",
"dayjs": "^1.11.6",
"js-cookie": "^3.0.1"
},
"devDependencies": {
"@sveltejs/adapter-node": "1.0.0-next.85",
"@sveltejs/kit": "1.0.0-next.444",
"@sveltejs/adapter-node": "1.0.0-next.99",
"@sveltejs/kit": "1.0.0-next.524",
"@types/js-cookie": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
Expand All @@ -32,14 +32,14 @@
"prettier": "^2.7.1",
"prettier-plugin-svelte": "^2.7.0",
"sass": "^1.54.0",
"svelte": "^3.49.0",
"svelte": "^3.52.0",
"svelte-check": "^2.8.0",
"svelte-feather-icons": "^3.6.0",
"svelte-preprocess": "^4.10.7",
"svelte-progresscircle": "^0.3.0",
"tslib": "^2.4.0",
"typescript": "^4.7.4",
"vite": "^3.0.4",
"typescript": "^4.8.4",
"vite": "^3.1.8",
"vite-plugin-windicss": "^1.8.7",
"windicss": "^3.5.6",
"workbox-cacheable-response": "^6.5.4",
Expand Down
Loading

0 comments on commit 8d829b1

Please sign in to comment.