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
+17 -11
View File
@@ -1,18 +1,24 @@
FROM alpine:latest FROM alpine:latest
WORKDIR /root WORKDIR /root
RUN apk update && \ RUN apk update && \
apk add --no-cache \ apk add --no-cache \
openssh \ openssh \
python3 \ python3 \
sqlite \ py3-pip \
pip \ sqlite
EXPOSE 80
EXPOSE 22 EXPOSE 22
VOLUME /root/data RUN mkdir /root/src
VOLUME /root/app
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 if test -f ./requirements.txt
then then
pip install -r ./requirements.txt python3 -m venv .venv
.venv/bin/pip install -r ./requirements.txt
else else
printf "Missing requirements file! aborting...\n" printf "Missing requirements file! aborting...\n"
exit 1 exit 1
fi fi
python3 ./src/scraper.py .venv/bin/python3 src/scraper.py