-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
Dockerfile
25 lines (20 loc) · 756 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# --------------------------------------------------------------------------
# This is a Dockerfile to build a Debian image with pypandoc and pandoc.
#
# Use a command like:
# docker build -t <user>/pypandoc .
# --------------------------------------------------------------------------
FROM python:3.12
LABEL author Jessica Tegner <[email protected]> and pypandoc contributors
# Update apt packages and install pandoc
RUN apt update && apt upgrade -y && apt install pandoc -y
# Update pip
RUN pip install --upgrade pip
# Copy the files to container
COPY . pypandoc
WORKDIR pypandoc
# Use pip to install the local version of pypandoc using pyproject.toml
RUN pip install .
RUN mkdir -p /source
WORKDIR /source
CMD ["/usr/bin/python"]