Initial Commit
This commit is contained in:
commit
fdeba8fd41
17 changed files with 2290 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
FROM node:22.13.1-alpine
|
||||
|
||||
ENV NODE_ENV=development
|
||||
|
||||
RUN npm install -g pnpm
|
||||
WORKDIR /src
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pnpm build
|
||||
|
||||
RUN pnpm prune --prod
|
||||
|
||||
FROM node:22.13.1-alpine
|
||||
|
||||
RUN apk add ffmpeg
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /dist
|
||||
COPY --from=0 /src/dist/* ./
|
||||
|
||||
CMD ["node", "."]
|
||||
Loading…
Add table
Add a link
Reference in a new issue