Skip to content

Commit 87ee8bc

Browse files
Optimized docker image
1 parent ee2adb4 commit 87ee8bc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ RUN cmake -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 .. && make -j$(nproc) && make
3434

3535
FROM ubuntu:24.04 AS http-api-cpp
3636
RUN DEBIAN_FRONTEND=noninteractive apt update -y \
37-
&& apt install -y wget curl dnsutils libcurl4 libfmt9 libsodium23 libcctz2 libatomic1 libicu74 \
37+
&& apt install -y gdb wget curl dnsutils libcurl4 libfmt9 libsodium23 libcctz2 libatomic1 libicu74 \
3838
&& rm -rf /var/lib/apt/lists/*
3939
COPY --from=builder /app/build/ton-http-api/ton-http-api-cpp /usr/bin/
4040
COPY --from=builder /app/build/tonlib-multiclient/libtonlib_multiclient_lib.so /usr/lib
4141
COPY ton-http-api/static/ /app/static/
4242
COPY config/static_config.yaml /app/static_config.yaml
4343

44-
RUN apt update && apt install -y gdb && mkdir -p /root/.config/gdb
45-
RUN echo "set auto-load safe-path /" > /root/.config/gdb/gdbinit
44+
RUN mkdir -p /root/.config/gdb && echo "set auto-load safe-path /" > /root/.config/gdb/gdbinit
4645
ENTRYPOINT [ "ton-http-api-cpp" ]

ton-http-api/src/handlers/TonlibRequestHandler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#pragma once
22
#include "components/TonlibComponent.h"
3-
#include "http/http.h"
43
#include "schemas/v2.hpp"
54
#include "userver/cache/expirable_lru_cache.hpp"
65
#include "userver/components/component_config.hpp"

0 commit comments

Comments
 (0)