pelican-website-ge/Dockerfile

22 lines
342 B
Docker
Raw Normal View History

2021-09-17 14:29:10 +02:00
FROM python:3.9.7-slim-buster as build
WORKDIR /app
RUN apt-get update && apt-get install make
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
RUN make publish
FROM openresty/openresty:buster-fat
COPY --from=build /app/output /var/www/pelican/output/
2021-09-21 14:00:47 +02:00
EXPOSE 80
2021-09-17 14:29:10 +02:00
COPY nginx.conf /etc/nginx/conf.d/default.conf