Skip to content
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
1 change: 0 additions & 1 deletion roverctl-web/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ README.md
.eslintrc.cjs
.graphqlrc
.editorconfig
.svelte-kit
.vscode
node_modules
build
Expand Down
12 changes: 6 additions & 6 deletions roverctl-web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Source: https://gist.github.com/aradalvand/04b2cad14b00e5ffe8ec96a3afbb34fb
FROM oven/bun:1-alpine AS builder
FROM oven/bun:1 AS builder
WORKDIR /app
COPY package*.json .
COPY bun.lockb* .
RUN bun install
COPY package*.json ./
COPY bun.lock* ./
RUN bun install --frozen-lockfile
COPY . .
# These are runtime arguments, but they do need to exist at built time to be able to import from public in svelte
ARG PUBLIC_ROVERD_HOST=""
Expand All @@ -14,9 +14,9 @@ ARG PUBLIC_PASSTHROUGH_HOST=""
ARG PUBLIC_PASSTHROUGH_PORT=""

RUN bun run build
RUN bun install --production
RUN rm -rf node_modules && bun install --frozen-lockfile --production

FROM oven/bun:1-alpine
FROM oven/bun:1
WORKDIR /app
COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/
Expand Down
6 changes: 4 additions & 2 deletions roverctl-web/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions roverctl-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
},
"type": "module",
"dependencies": {
"@bufbuild/protobuf": "^2.10.2",
"@floating-ui/dom": "1.6.12",
"@iconify-icons/bx": "^1.2.6",
"@paralleldrive/cuid2": "^2.2.2",
Expand Down
Loading