dockerfile backend wip
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
This commit is contained in:
23
backend/Dockerfile
Normal file
23
backend/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM oven/bun:latest AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json ./
|
||||
|
||||
COPY bun.lock ./
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY src ./src
|
||||
|
||||
RUN ls && bun run build
|
||||
|
||||
FROM oven/bun:latest AS run
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/dist/ .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["bun", "run", "main.js"]
|
||||
Reference in New Issue
Block a user