🐳 Adds dockerfile
This commit is contained in:
1 parent
47bde2b22c
commit
30e00c4eba
6 files changed
+1056
-41
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
FROM oven/bun:latest as build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY bun.lock* package.json ./
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
RUN bun run build
|
||||
|
||||
FROM oven/bun:latest as runner
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/dist ./
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["bun", "x", "serve", "--single"]
|
||||
Reference in new issue
Block a user