Skip to content

Commit 341ec37

Browse files
committed
simplify
1 parent 36ce651 commit 341ec37

File tree

7 files changed

+10
-446
lines changed

7 files changed

+10
-446
lines changed

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ fly.toml
2323
.devbox
2424
.git
2525
*/.venv
26-
*/*.jsonl
26+
*/*.jsonl
27+
28+
*/*.zip

docker/sitio.Dockerfile

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,19 @@
1-
FROM node:23 AS base
1+
FROM node:24
22
RUN corepack enable
33
WORKDIR /usr/src/app
4-
5-
FROM base as build
4+
RUN apt-get update && \
5+
apt-get install -y jq sqlite3 tini && \
6+
rm -rf /var/lib/apt/lists/*
67

78
COPY . .
89
WORKDIR sitio/
910
RUN pnpm install && \
1011
pnpm build
11-
12-
FROM base
13-
ENV NODE_ENV=production
14-
RUN apt-get update && \
15-
apt-get install -y jq sqlite3 tini && \
16-
rm -rf /var/lib/apt/lists/*
1712
ENTRYPOINT ["tini", "--"]
18-
# glib libnss dbus-libs libatk-1.0 libatk-bridge-2.0 cups-libs libdrm libxkbcommon libxcomposite libxdamage libxrandr mesa-gbm pango alsa-lib freetype harfbuzz ca-certificates
19-
20-
# Sitio
21-
COPY --from=build /usr/src/app/sitio/build/ /usr/src/sitio
22-
WORKDIR /usr/src/sitio
23-
COPY --from=build /usr/src/app/pnpm-lock.yaml /usr/src/
24-
COPY --from=build /usr/src/app/pnpm-workspace.yaml /usr/src/
25-
COPY --from=build /usr/src/app/api /usr/src/api
26-
COPY --from=build /usr/src/app/sitio/package.json package.real.json
27-
COPY --from=build /usr/src/app/sitio/drizzle/ drizzle
28-
COPY --from=build /usr/src/app/sitio/src/lib/db/historicLikes/likes.tsv.br src/lib/db/historicLikes/likes.tsv.br
29-
RUN sh -c 'echo {\"name\":\"sitio\",\"type\":\"module\",\"dependencies\":$(jq .dependencies < package.real.json)} > package.json'
3013
RUN pnpm install --prod
3114

32-
ENV TURSO_CONNECTION_URL=file:/db/db.db
3315
ENV BODY_SIZE_LIMIT=5242880
16+
ENV NODE_ENV=production
3417
EXPOSE 3000
3518

3619
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \

pnpm-lock.yaml

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scraper-manzana/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
"typescript": "^5.7.3"
4646
},
4747
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
48-
}
48+
}

0 commit comments

Comments
 (0)