DONE
This commit is contained in:
parent
ab37fe1eee
commit
ea85ea20ec
11
Dockerfile
11
Dockerfile
|
@ -5,11 +5,22 @@ FROM python:3.11-alpine
|
|||
# Set working dir
|
||||
WORKDIR /code
|
||||
|
||||
# Download git
|
||||
RUN apk add git
|
||||
|
||||
# Download files
|
||||
RUN git clone https://forgejo.vanten-s.com/vanten-s/vanten-s.com .
|
||||
RUN git submodule update --init
|
||||
|
||||
# Get latest feeds
|
||||
RUN git -C feed_articles pull origin main
|
||||
|
||||
# Install requirements
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
# Allow us to access the server
|
||||
EXPOSE 3000
|
||||
|
||||
# Run
|
||||
CMD ["python3", "main.py", "&"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue