Sceduled mode

This commit is contained in:
Morten Olsen
2021-12-18 13:47:57 +01:00
parent 91615e005e
commit ecf382b486
7 changed files with 161 additions and 92 deletions

View File

@@ -8,8 +8,9 @@ COPY . /app/
RUN yarn bundle
FROM node:alpine
RUN apk update && apk add git
COPY entry.sh /entry.sh
RUN chmod 711 /entry.sh && apk update && apk add git
COPY --from=BuildEnv /app/dist /app
RUN ls /app
CMD ["node", "/app/index.js"]
CMD ["schedule"]
ENTRYPOINT ["/entry.sh"]
VOLUME /backup