Spaces:
Build error
Build error
Create Dockerfile
#5
by launch-calcium - opened
- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM oven/bun as build
|
| 2 |
+
WORKDIR /app
|
| 3 |
+
COPY . .
|
| 4 |
+
RUN bun install --frozen-lockfile && bun run build
|
| 5 |
+
|
| 6 |
+
FROM oven/bun:slim
|
| 7 |
+
WORKDIR /app
|
| 8 |
+
COPY --from=build /.output ./
|
| 9 |
+
EXPOSE 7860
|
| 10 |
+
ENV PORT=7860 HOST=0.0.0.0
|
| 11 |
+
CMD ["bun", ".output/server/index.mjs"]
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
|