try bun 1.3.6
This commit is contained in:
parent
42acd11c3d
commit
6565a230ec
3 changed files with 18 additions and 8 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -1,17 +1,27 @@
|
|||
FROM node:alpine
|
||||
FROM oven/bun:1.3.6-debian AS builder
|
||||
|
||||
RUN apk add --no-cache nginx docker-cli
|
||||
WORKDIR /app
|
||||
COPY logs-server.js .
|
||||
RUN bun build --compile logs-server.js --outfile server
|
||||
|
||||
FROM debian:13.3-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
nginx \
|
||||
docker.io \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
COPY styles.css /usr/share/nginx/html/styles.css
|
||||
COPY favicon.svg /usr/share/nginx/html/favicon.svg
|
||||
COPY favicon-dark.svg /usr/share/nginx/html/favicon-dark.svg
|
||||
COPY logs-server.js /app/logs-server.js
|
||||
COPY --from=builder /app/server /app/server
|
||||
|
||||
RUN echo '#!/bin/sh' > /start.sh && \
|
||||
echo 'nginx' >> /start.sh && \
|
||||
echo 'cd /app && node logs-server.js' >> /start.sh && \
|
||||
echo '/app/server' >> /start.sh && \
|
||||
chmod +x /start.sh
|
||||
|
||||
EXPOSE 8888
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Snowflake Dashboard</title>
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg?v=1.3.4" media="(prefers-color-scheme: light)">
|
||||
<link rel="icon" type="image/svg+xml" href="favicon-dark.svg?v=1.3.4" media="(prefers-color-scheme: dark)">
|
||||
<link rel="stylesheet" href="styles.css?v=1.3.4">
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg?v=1.3.5" media="(prefers-color-scheme: light)">
|
||||
<link rel="icon" type="image/svg+xml" href="favicon-dark.svg?v=1.3.5" media="(prefers-color-scheme: dark)">
|
||||
<link rel="stylesheet" href="styles.css?v=1.3.5">
|
||||
</head>
|
||||
<body>
|
||||
<div class="grid grid-top">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "snowflake-dashboard",
|
||||
"version": "1.3.4",
|
||||
"version": "1.3.5",
|
||||
"type": "module",
|
||||
"license": "AGPL-3.0",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue