mirror of
https://github.com/hex248/year.git
synced 2026-02-07 18:23:03 +00:00
pm2 ecosystem
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,12 +0,0 @@
|
|||||||
FROM oven/bun:1
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY package.json bun.lock ./
|
|
||||||
RUN bun install --frozen-lockfile
|
|
||||||
|
|
||||||
COPY src ./src
|
|
||||||
|
|
||||||
EXPOSE 7345
|
|
||||||
|
|
||||||
CMD ["bun", "run", "src/index.ts"]
|
|
||||||
9
ecosystem.config.cjs
Normal file
9
ecosystem.config.cjs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
module.exports = {
|
||||||
|
apps: [
|
||||||
|
{
|
||||||
|
name: "year",
|
||||||
|
script: "src/index.ts",
|
||||||
|
interpreter: "bun",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user