-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathDockerfile.dev
More file actions
37 lines (30 loc) · 879 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
37 lines (30 loc) · 879 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
FROM python:3.12-alpine
RUN apk add --no-cache \
flock \
gcc \
musl-dev \
linux-headers \
python3-dev \
pipx \
sudo
RUN adduser -D secator
# Allow secator to run anything as root without password
RUN echo "secator ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
chmod 0440 /etc/sudoers
USER secator
WORKDIR /code
ENV PATH="${PATH}:/home/secator/.local/bin"
ENV CARGO_HOME="/home/secator/.local"
ENV GOBIN="/home/secator/.local/bin"
ENV GOPATH="/home/secator/go"
ENV TERM="xterm-256color"
ENV SECATOR_SECURITY_PROMPT_SUDO_PASSWORD="0"
COPY --chown=secator:secator . .
RUN pip install --no-cache-dir -e ".[dev]" && \
secator install addons worker && \
secator install addons mongodb && \
secator install addons redis && \
secator install addons gcs && \
secator install addons ai
ENTRYPOINT ["secator"]
CMD ["worker", "-r"]