remove scripts, fix db copy error
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user