Skip to content

Commit

Permalink
fix: missing package, dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Oct 25, 2023
1 parent 2abde13 commit 5ac8fe7
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 30 deletions.
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
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" ]
20 changes: 0 additions & 20 deletions oldDockerfile

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"nuxt-icon": "^0.5.0",
"nuxt-monaco-editor": "^1.2.3",
"nuxt-security": "1.0.0-rc.2",
"tailwindcss": "^3.3.3"
"tailwindcss": "^3.3.3",
"vue-router": "^4.2.5"
},
"dependencies": {
"@headlessui/vue": "^1.7.16",
Expand Down

0 comments on commit 5ac8fe7

Please sign in to comment.