-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (34 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
43 lines (34 loc) · 1.17 KB
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
40
41
42
43
FROM alpine:3.19.1 AS build
LABEL authors="syeyoung"
RUN apk update && \
apk add --no-cache \
build-base \
cmake \
boost-dev \
libcurl \
openssl \
git
WORKDIR /
RUN git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp --depth 1
RUN apk add libcrypto3 crypto++ openssl-dev curl-dev zlib-dev
RUN cd aws-sdk-cpp && mkdir build && cd /aws-sdk-cpp/build && \
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX=/out -DCMAKE_CXX_COMPILER=g++ \
-DBUILD_ONLY="s3" && \
make && make install
COPY . /build
COPY CMakeLists2.txt /build/CMakeLists.txt
RUN cd /build && ls && mkdir build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF \
-DCMAKE_PREFIX_PATH=/out -DCMAKE_CXX_COMPILER=g++ && \
make && make pathfind-request-processor-container
FROM alpine:3.19.1
RUN ls
RUN apk update && \
apk add --no-cache \
libstdc++ \
boost1.82-iostreams \
libcurl \
zlib
COPY --from=build /build/build/container/pathfind-request-processor-container /app/
ENTRYPOINT ["/app/pathfind-request-processor-container"]