forked from wagov/siem-query-utils
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (23 loc) · 874 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
28
29
FROM jupyter/datascience-notebook:python-3.10
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/wagov/siem-query-utils"
# See here for image contents: https://hub.docker.com/r/jupyter/datascience-notebook/
# User setup and group fix
USER root
RUN groupmod -n jovyan users
# Debian pkgs setup
RUN apt-get -y update && apt-get -y --no-install-recommends install weasyprint wkhtmltopdf byobu\
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
# Copy over python project
COPY . /app
WORKDIR /app
RUN /app/scripts/install-quarto.sh
RUN chown -R jovyan:jovyan /app
USER jovyan
SHELL ["/bin/bash", "-l", "-c"]
# Install poetry
RUN pip install poetry
# Freshen npm
RUN npm install -g npm
# Sleep forever on launch to keep container running
ENTRYPOINT ["/bin/bash", "-l", "-c", "sleep infinity"]