-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile.dev
26 lines (19 loc) · 727 Bytes
/
Dockerfile.dev
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
# This is a container to build the Nyx Python package on OpenSUSE
# Start with OpenSUSE Tumbleweed
FROM opensuse/tumbleweed
# Install Python 3.10 and other necessary packages
RUN zypper ref && \
zypper -n in gcc make python310 python310-pip gawk uuid-runtime perl perl-IPC-System-Simple && \
zypper clean
WORKDIR /app
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup.sh && sh rustup.sh -y
# Make Rust available
ENV PATH="${PATH}:/root/.cargo/bin"
ENV RUST_BACKTRACE=full
# Install maturin to build the package
RUN pip install maturin
# Finally copy
COPY . /app
# And build in release only
CMD ["maturin", "build", "-F", "python", "--release", "-i", "python3.10", "--strip"]