forked from isamplesorg/vocabularyTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 878 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
26
27
FROM python:3-slim
WORKDIR /app
COPY ./.github/actions/github_action_main.py .
COPY ./tools ./tools
COPY ./vocabulary ./vocabulary
COPY ./docs ./docs
COPY ./cache ./cache
# RUN chmod a+x /app/github_action_main.py
RUN chmod a+x /app/github_action_main.py
# Quarto install instructions from https://www.r-bloggers.com/2022/07/how-to-set-up-quarto-with-docker-part-1-static-content/
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
gdebi-core \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -r /app/tools/requirements.txt
RUN curl -LO https://quarto.org/download/latest/quarto-linux-amd64.deb
RUN gdebi --non-interactive quarto-linux-amd64.deb
ENV PYTHONPATH /app
ENTRYPOINT ["/app/github_action_main.py"]
# This is for debugging the Docker image build process, ensures the container stays up
# ENTRYPOINT ["tail", "-f", "/dev/null"]