Skip to content

Commit 3e81e29

Browse files
authored
B426 add library for cancel (#46)
1 parent e4542fa commit 3e81e29

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,29 @@ COPY . .
3131

3232
RUN npm run build
3333

34-
# Stage 3: Final image
34+
# Stage 3: Final image with LaTeX and pandoc
3535
FROM public.ecr.aws/lambda/nodejs:${NODE_VERSION}
3636

37+
# Set working directory
3738
WORKDIR ${LAMBDA_TASK_ROOT}
3839

39-
# Install Latex environment and dependencies
40+
# Install LaTeX environment and dependencies
4041
RUN dnf install -y \
4142
texlive-collection-latexrecommended.noarch \
42-
texlive-iftex.noarch
43+
texlive-iftex.noarch \
44+
texlive-braket.noarch \
45+
texlive-cancel.noarch
4346

4447
# Copy the LaTeX template
4548
COPY ./src/template.latex template.latex
4649

47-
# Copy built files from previous stage
50+
# Copy built files from the previous stage
4851
COPY --from=builder /app/dist/* ./
52+
53+
# Copy pandoc from the first stage
4954
COPY --from=pandoc /usr/bin/pandoc /usr/bin/pandoc
5055

56+
# Set environment variables
5157
ENV TEXMFHOME /tmp/texmf
5258
ENV TEXMFCONFIG /tmp/texmf-config
5359
ENV TEXMFVAR /tmp/texmf-var

src/template.latex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ $if(linestretch)$
88
\usepackage{setspace}
99
\setstretch{$linestretch$}
1010
$endif$
11+
\usepackage{cancel}
1112
\usepackage{amssymb,amsmath}
1213
\usepackage{ifxetex,ifluatex}
1314
\usepackage{fixltx2e} % provides \textsubscript

0 commit comments

Comments
 (0)