Fix Dockerfile.

This commit is contained in:
Chris Kiriakou
2025-03-19 20:54:13 +01:00
parent ae477c01a4
commit 3fe19fd41f
2 changed files with 20 additions and 14 deletions
+12 -6
View File
@@ -6,13 +6,19 @@ RUN apk update && \
apk add --no-cache \
openssh \
python3 \
sqlite \
pip \
py3-pip \
sqlite
EXPOSE 80
EXPOSE 22
VOLUME /root/data
VOLUME /root/app
RUN mkdir /root/src
ENTRYPOINT /root/startup.sh;
COPY ./startup.sh /root
COPY ./requirements.txt /root
COPY ./src/ /root/src/
RUN ls -la
VOLUME /root
ENTRYPOINT ["/bin/sh", "/root/startup.sh"]
Regular → Executable
+3 -3
View File
@@ -4,11 +4,11 @@
if test -f ./requirements.txt
then
pip install -r ./requirements.txt
python3 -m venv .venv
.venv/bin/pip install -r ./requirements.txt
else
printf "Missing requirements file! aborting...\n"
exit 1
fi
python3 ./src/scraper.py
.venv/bin/python3 src/scraper.py