25 lines
667 B
Docker
25 lines
667 B
Docker
FROM debian:trixie-slim
|
|
|
|
WORKDIR /blog_creator
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
ADD src/ /blog_creator
|
|
|
|
RUN apt-get update && apt-get install -y rustc cargo python-is-python3 pip python3-venv libmagic-dev git
|
|
# Need to set up git here or we get funky errors
|
|
RUN git config --global user.name "Blog Creator"
|
|
RUN git config --global user.email "ridgway.infrastructure@gmail.com"
|
|
RUN git config --global push.autoSetupRemote true
|
|
#Get a python venv going as well cause safety
|
|
RUN python -m venv /opt/venv
|
|
ENV PATH="/opt/venv/bin:$PATH"
|
|
|
|
COPY requirements.txt requirements.txt
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
ENTRYPOINT ["python", "main.py"]
|