13 lines
396 B
Docker
13 lines
396 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM python:3
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
WORKDIR /app
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt update && apt install -y gettext && rm -rf /var/lib/apt/lists/*
|
|
COPY requirements.txt /app/
|
|
RUN pip install -r requirements.txt
|
|
COPY . /app/
|
|
RUN mkdir -p /app/static
|
|
RUN pygmentize -S nord -f html -a .codehilite > /app/static/codehighlight.css
|