site-docker/Dockerfile
2023-08-12 22:54:12 +02:00

27 lines
444 B
Docker

# syntax=docker/dockerfile:1
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", "&"]