mirror of
https://github.com/cupcakearmy/gitea-sync.git
synced 2024-12-22 16:16:27 +00:00
20 lines
324 B
Docker
20 lines
324 B
Docker
|
FROM node:18.15-alpine as base
|
||
|
|
||
|
RUN npm -g install pnpm@7
|
||
|
WORKDIR /app
|
||
|
COPY package.json pnpm-lock.yaml ./
|
||
|
|
||
|
FROM base as build
|
||
|
RUN pnpm install --frozen-lockfile
|
||
|
COPY . .
|
||
|
RUN pnpm run build
|
||
|
|
||
|
FROM base as runner
|
||
|
RUN pnpm install --frozen-lockfile --prod
|
||
|
COPY --from=build /app/dist /app/dist
|
||
|
CMD ["pnpm", "run", "start"]
|
||
|
|
||
|
|
||
|
|
||
|
|