Skip to content

Commit

Permalink
update cpp and pin to 3.18 (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinlparker committed Dec 13, 2023
1 parent daadf5e commit 207fa7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/currencyservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine as builder
FROM alpine:3.18 as builder

RUN apk update && apk add git cmake make g++ grpc-dev protobuf-dev
RUN apk update && apk add git cmake make g++ grpc-dev protobuf-dev linux-headers

ARG OPENTELEMETRY_CPP_VERSION=1.12.0
ARG OPENTELEMETRY_CPP_VERSION=1.13.0

RUN git clone https://github.com/open-telemetry/opentelemetry-cpp \
&& cd opentelemetry-cpp/ \
Expand All @@ -27,7 +27,7 @@ RUN git clone https://github.com/open-telemetry/opentelemetry-cpp \
&& cd build \
&& cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF \
-DWITH_EXAMPLES=OFF -DWITH_OTLP_GRPC=ON \
-DWITH_EXAMPLES=OFF -DWITH_OTLP_GRPC=ON -DWITH_ABSEIL=ON \
&& make -j$(nproc || sysctl -n hw.ncpu || echo 1) install && cd ../..

COPY . /currencyservice
Expand All @@ -38,7 +38,7 @@ RUN cd /currencyservice \
&& make -j$(nproc || sysctl -n hw.ncpu || echo 1) install


FROM alpine as release
FROM alpine:3.18 as release

RUN apk update && apk add grpc-dev protobuf-dev
COPY --from=builder /usr/local /usr/local
Expand Down

0 comments on commit 207fa7e

Please sign in to comment.