-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
36 lines (25 loc) · 786 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
30
31
32
33
34
35
36
# Please note that this Docker file does not yet produce anything useful. Work In Progress
FROM ubuntu:latest
SHELL ["/bin/bash", "-c"]
RUN apt update
RUN apt install python3 -y
RUN apt install python3-pip -y
RUN apt install python3.12-venv -y
RUN apt install swig
WORKDIR /app
RUN python3 -m venv venv
RUN . venv/bin/activate
RUN ./venv/bin/pip install poetry
COPY . .
RUN ./venv/bin/poetry install
RUN chmod +x ./start.sh
RUN mv .env.docker .env
# Install PDF converter
RUN apt-get update && apt-get install -y wkhtmltopdf
# Install node, npm and yarn for the JS side
RUN apt install nodejs -y
RUN apt install npm -y
RUN npm install --global yarn
# Make sure the PDF advice folder is available
RUN mkdir -p /tmp/data_questionnaire_agent/pdfs
CMD ["/bin/bash", "./start.sh"]