Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: workflows and dockerfile #2

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ jobs:
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: apply -n portals -f k8s/deployment_mod.yaml
args: apply -n vc-repository -f k8s/deployment_mod.yaml
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,16 @@ dist

.nitro/
.data/
.output/
.idea/

*-lock.json
*-lock.yaml
*-lock.yml
*.lock
*.lockb
.npmrc
.prettierrc
.eslintrc
.output
.run
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

13 changes: 0 additions & 13 deletions .run/dev.run.xml

This file was deleted.

15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
FROM docker.io/node:20
ADD .output/ /app

FROM docker.io/gplane/pnpm as buildstage
COPY ./package.json /build/
WORKDIR /build
RUN pnpm install
COPY ./ /build
RUN pnpm run build
# RUN
FROM docker.io/node:20-alpine
COPY --from=buildstage /build/.output/ /app
WORKDIR /app

EXPOSE 3000
ENTRYPOINT node server/index.mjs
ENTRYPOINT node server/index.mjs
15 changes: 12 additions & 3 deletions Dockerfile2 → Dockerfile-bun-official-erroring
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM oven/bun as base
WORKDIR /app
###################################################
# ERROR [nuxt] [request error] [unhandled] [500] first argument must be an ArrayBufferView or an ArrayBuffer (near '...stantiate(wasm, obj));...')
# https://github.com/nuxt/content/issues/2334
###################################################



# use the official Bun image
# see all versions at https://hub.docker.com/r/oven/bun/tags
FROM oven/bun:1 as base
WORKDIR /usr/src/app

# install dependencies into temp directory
# this will cache them and speed up future builds
Expand Down Expand Up @@ -33,4 +42,4 @@ COPY --from=prerelease /usr/src/app/package.json .
# run the app
USER bun
EXPOSE 3000/tcp
ENTRYPOINT [ "bun", "run", "index.ts" ]
ENTRYPOINT [ "bun", "run", "index.ts" ]
Binary file removed bun.lockb
Binary file not shown.
20 changes: 0 additions & 20 deletions oldDockerfile

This file was deleted.

Loading