forked from SteakFisher/BRC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (19 loc) · 662 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (19 loc) · 662 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
FROM steakfisher1/im-in-so-much-pain-compilation-python-nogil:3.13 AS base
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc python3-dev libffi-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
ENV PYTHONUNBUFFERED=1
ENV RUST_LOG=debug
ENV RUST_BACKTRACE=0
COPY . .
FROM base AS final
USER root
RUN mkdir -p /usr/src/app/testcases /usr/src/app/src /usr/src/app/output
RUN test -f /usr/src/app/src/main.py || (echo "main.py missing" && exit 1)
VOLUME /usr/src/app/testcases
VOLUME /usr/src/app/output
VOLUME /usr/src/app/src
CMD ["./daemon"]