-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 707 Bytes
/
Copy pathDockerfile
File metadata and controls
38 lines (29 loc) · 707 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
#
# This Dockerfile will build and test the library.
#
# Copyright (c) 2024, Bastian Bense <bb@neosw.de>
#
FROM rust:slim
# Set the search path for the dynamic linker
# This is required because libharu is installed in /usr/local/lib and the
# rust docker image does not include this path in the search path.
#
ENV LD_LIBRARY_PATH=/usr/local/lib
# Install dependencies
#
RUN apt-get update && apt-get install -y \
build-essential \
libpng-dev \
zlib1g-dev \
cmake \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy source code
#
COPY libharu libharu
COPY src src
COPY Cargo.toml Cargo.lock build.rs ./
# Build and test
#
RUN cargo build --release
RUN cargo test --release --lib