Added restart script and fixed dockerfile and run to match docs
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -10,7 +10,7 @@ RUN rm -rf /requirements.txt
|
||||
FROM requirements AS sia-test
|
||||
COPY ./ /root/sia/
|
||||
WORKDIR /root/sia/
|
||||
RUN mkdir -p /root/model
|
||||
RUN mkdir -p /root/models/current
|
||||
CMD ["python3", "-m", "unittest", "discover", "-v", "-p", "*test.py"]
|
||||
|
||||
FROM node:20-alpine AS web-test
|
||||
@@ -36,14 +36,22 @@ RUN apt-get update
|
||||
RUN apt-get install -y google-chrome-stable
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p \
|
||||
/root/sia \
|
||||
/root/data/iterations \
|
||||
/root/data/user \
|
||||
/root/data/tasks \
|
||||
/root/data/environment \
|
||||
/root/models \
|
||||
/root/desktop
|
||||
|
||||
COPY ./tools/itb/requirements.txt /root/sia/tools/itb/requirements.txt
|
||||
RUN cd /root/sia/tools/itb/ && python3 -m pip install -r requirements.txt
|
||||
|
||||
COPY ./tools/ /root/sia/tools/
|
||||
RUN cd /root/sia/tools/itb/ && python3 -m pip install -e ".[dev]"
|
||||
|
||||
COPY ./ /root/sia/
|
||||
COPY --from=web-build /app/dist /root/sia/static/
|
||||
WORKDIR /root/sia
|
||||
COPY --from=web-build /app/dist /root/static/
|
||||
WORKDIR /root/desktop
|
||||
|
||||
CMD ["python3", "-m", "sia"]
|
||||
CMD ["/root/sia/scripts/restart.sh"]
|
||||
Reference in New Issue
Block a user