-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.07 KB
/
Dockerfile
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
# Create a steganography image. This Dockerfile will build an Alpine Linux
# image which includes a build of the steganography binary.
# This Dockerfile uses a multi-stage build. The first stage, builder, builds
# the steganography binary. The second stage copies the steganography binary
# from builder to the final image.
FROM alpine:latest AS builder
# Install all the packages needed to build steganography.
RUN apk add --no-cache \
build-base \
boost-dev \
libjpeg-turbo-dev \
libpng-dev \
cmake \
bash
# Copy the steganography source tree.
COPY ./ /steganography/
# Build steganography using the build script included in the source tree.
WORKDIR /steganography/scripts
RUN chmod +x clean.sh && \
./clean.sh && \
chmod +x build.sh && \
./build.sh
FROM alpine:latest
RUN apk add --no-cache \
bash \
libjpeg-turbo \
libpng \
libgcc \
libstdc++
# Copy the steganography binary from the builder image to this final image.
COPY --from=builder /steganography/bin/steganography /usr/local/bin