prasi-bun/deploy/captain-definition

18 lines
464 B
Plaintext

{
"schemaVersion": 2,
"dockerfileLines": [
"FROM oven/bun:debian",
"sudo apt install git",
"RUN mkdir -p /prasi",
"CD /prasi",
"RUN git clone https://github.com/rizrmd/prasi.git --depth=1",
"COPY package.json bun.lockb /temp/prod/",
"RUN cd /temp/prod && bun install --frozen-lockfile --production",
"RUN mkdir -p /temp/prod",
"COPY /temp/prod/node_modules node_modules",
"ENV PORT 80",
"EXPOSE 4550",
"CMD [ \"bun\", \"prod\" ]"
]
}