mirror of
https://github.com/agresdominik/predictify.git
synced 2026-04-21 17:55:49 +00:00
Fix Dockerfile.
This commit is contained in:
+12
-6
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user