remove scripts, fix db copy error

This commit is contained in:
iamBadgers
2025-06-02 00:18:52 -07:00
parent e1f7404c8d
commit cf3abe92f5
3 changed files with 3 additions and 102 deletions

View File

@@ -9,7 +9,7 @@
# RUN systemctl enable cron
# Setup the loader
FROM python:3.12
FROM python:3.12 AS loader
COPY ./loader /srv/cprush-stats
WORKDIR /srv/cprush-stats
RUN python -m pip install --upgrade pip
@@ -19,8 +19,6 @@ CMD ["python3", "createrushdatabase.py"]
FROM node:23
COPY --from=0 /srv/cprush-stats /srv/cprush-stats
RUN corepack enable
# build the frontend
@@ -46,6 +44,8 @@ EXPOSE 3001
ENV NODE_ENV=production
ENV MEMCACHE_ADDR="localhost:11211"
COPY --from=loader /srv/cprush-stats/testdb.db /srv/cprush-stats/testdb.db
WORKDIR /srv/cprush-stats
RUN npm install
CMD ["sh", "-c", "node app.js -m $MEMCACHE_ADDR"]