generated from Lookyloo/project_template
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (28 loc) · 949 Bytes
/
Dockerfile
File metadata and controls
46 lines (28 loc) · 949 Bytes
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
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:24.04
# Build dependencies
RUN apt-get update && apt-get -y install build-essential curl git python3
RUN mkdir -p /app
WORKDIR /app
# Install Valkey
RUN git clone https://github.com/valkey-io/valkey.git
WORKDIR /app/valkey
RUN git checkout 8.0 && make
WORKDIR /app
# Install lacus
RUN git clone https://github.com/ail-project/lacus.git
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/root/.local/bin:${PATH}"
WORKDIR /app/lacus
RUN poetry install && poetry run playwright install-deps
RUN echo LACUS_HOME="`pwd`" >> .env
RUN poetry run update --init
RUN apt-get install -y supervisor
COPY ./supervisord/supervisord.conf /supervisord/supervisord.conf
# Clean up for size
RUN apt-get remove -y build-essential git && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]