mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-21 22:16:18 +00:00
docker: usar debian
This commit is contained in:
parent
74640df37e
commit
25810578eb
2 changed files with 7 additions and 6 deletions
|
@ -13,3 +13,5 @@ Dockerfile
|
|||
.git
|
||||
scraper/debug/
|
||||
*/target/
|
||||
scraper-rs/target/
|
||||
*.db*
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
FROM cgr.dev/chainguard/wolfi-base AS base
|
||||
FROM docker.io/node:20 AS base
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
FROM base as build
|
||||
RUN apk add --no-cache nodejs npm
|
||||
RUN npm install --global pnpm
|
||||
COPY db-datos/package.json db-datos/package.json
|
||||
COPY sitio/package.json sitio/package.json
|
||||
COPY pnpm-lock.yaml pnpm-workspace.yaml .
|
||||
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
RUN cd sitio && pnpm install
|
||||
COPY . .
|
||||
COPY db-datos/drizzle .
|
||||
|
@ -16,7 +15,7 @@ RUN cd sitio && \
|
|||
|
||||
FROM base
|
||||
ENV NODE_ENV=production
|
||||
RUN apk add --no-cache nodejs npm jq sqlite
|
||||
RUN apt-get update && apt-get install -y jq sqlite3 && apt-get clean
|
||||
|
||||
# Sitio
|
||||
COPY --from=build /usr/src/app/sitio/package.json package.real.json
|
||||
|
|
Loading…
Reference in a new issue