OhMyDitzzy commited on
Commit ·
3925825
1
Parent(s): c3d7cfd
anything
Browse files- Dockerfile +4 -5
- public/index.html +0 -15
Dockerfile
CHANGED
|
@@ -2,13 +2,14 @@ FROM oven/bun:1-alpine
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
|
| 6 |
-
COPY
|
| 7 |
-
COPY tsconfig.
|
| 8 |
COPY vite.config.ts ./
|
| 9 |
|
| 10 |
RUN bun install --production
|
| 11 |
|
|
|
|
| 12 |
COPY src ./src
|
| 13 |
COPY public ./public
|
| 14 |
|
|
@@ -17,9 +18,7 @@ RUN bun install vite @vitejs/plugin-react && bun run build
|
|
| 17 |
RUN bun build src/server/index.ts --outdir dist --target bun
|
| 18 |
|
| 19 |
EXPOSE 7860
|
| 20 |
-
|
| 21 |
ENV PORT=7860
|
| 22 |
ENV NODE_ENV=production
|
| 23 |
|
| 24 |
-
# Run the server
|
| 25 |
CMD ["bun", "run", "dist/index.js"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Copy package files
|
| 6 |
+
COPY package*.json ./
|
| 7 |
+
COPY tsconfig*.json ./
|
| 8 |
COPY vite.config.ts ./
|
| 9 |
|
| 10 |
RUN bun install --production
|
| 11 |
|
| 12 |
+
COPY index.html ./
|
| 13 |
COPY src ./src
|
| 14 |
COPY public ./public
|
| 15 |
|
|
|
|
| 18 |
RUN bun build src/server/index.ts --outdir dist --target bun
|
| 19 |
|
| 20 |
EXPOSE 7860
|
|
|
|
| 21 |
ENV PORT=7860
|
| 22 |
ENV NODE_ENV=production
|
| 23 |
|
|
|
|
| 24 |
CMD ["bun", "run", "dist/index.js"]
|
public/index.html
DELETED
|
@@ -1,15 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8" />
|
| 5 |
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
| 6 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
-
<meta name="description" content="Yuki Botz - Lightweight WhatsApp Bot" />
|
| 8 |
-
<meta name="theme-color" content="#667eea" />
|
| 9 |
-
<title>Yuki Botz</title>
|
| 10 |
-
</head>
|
| 11 |
-
<body>
|
| 12 |
-
<div id="root"></div>
|
| 13 |
-
<script type="module" src="/src/main.tsx"></script>
|
| 14 |
-
</body>
|
| 15 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|