File tree Expand file tree Collapse file tree 2 files changed +8
-27
lines changed Expand file tree Collapse file tree 2 files changed +8
-27
lines changed Original file line number Diff line number Diff line change 1
- FROM --platform=$TARGETOS/$TARGETARCH alpine AS curl
1
+ FROM --platform=$TARGETOS/$TARGETARCH debian AS curl
2
2
3
3
# Install build dependencies
4
- RUN apk add openssl -dev make g++ curl
4
+ RUN apt update && apt install libssl -dev make g++ curl -y
5
5
6
6
# Download curl source from https://curl.se/download/
7
7
RUN curl -o curl.tgz https://curl.se/download/curl-8.5.0.tar.gz
8
8
9
9
# Unpack
10
- RUN tar xzvf curl.tgz --strip-components=1
10
+ RUN tar xzvf curl.tgz
11
11
12
- # Configure
13
- RUN ./configure --with-openssl --enable-websockets
12
+ # Build
13
+ RUN cd curl-*/ && \
14
+ ./configure --with-openssl --enable-websockets && \
15
+ make && make install
14
16
15
- # Compile
16
- RUN make && make install
17
-
18
- FROM --platform=$TARGETOS/$TARGETARCH alpine
17
+ FROM --platform=$TARGETOS/$TARGETARCH debian
19
18
20
19
LABEL org.opencontainers.image.source="https://github.com/kordlib/docker"
21
20
LABEL org.opencontainers.image.licenses=MIT
22
21
23
- # See https://youtrack.jetbrains.com/issue/KT-38876/#focus=Comments-27-4805258.0-0
24
- RUN apk add gcompat
25
22
# https://github.com/ktorio/ktor/blob/6265a80481d77cdbb2ff7950750e8ee5aa085813/ktor-client/ktor-client-curl/desktop/interop/libcurl.def#L28C32-L28C42
26
23
COPY --from=curl /usr/local/lib/libcurl.a /usr/lib/libcurl.a
27
24
COPY --from=curl /usr/local/lib/libcurl.la /usr/lib/libcurl.la
Original file line number Diff line number Diff line change @@ -4,22 +4,6 @@ Docker base images for running Kord Native applications
4
4
5
5
This image can be used as a base for the upcoming Kord Native target, please read kordlib/kord #69 for more information
6
6
7
- # Configure for proper compilation
8
-
9
- Since the images are alpine based you need to configure your compilation accordingly.
10
- Please also read [ KT-38876] ( https://youtrack.jetbrains.com/issue/KT-38876/#focus=Comments-27-4805258.0-0 ) for more information
11
-
12
- ``` kotlin
13
- kotlin {
14
- linuxX64 {
15
- binaries.executable {
16
- linkerOpts(" --as-needed" , " --defsym=isnan=isnan" )
17
- freeCompilerArgs = freeCompilerArgs + listOf (" -Xoverride-konan-properties=linkerGccFlags=-lgcc -lgcc_eh -lc" )
18
- }
19
- }
20
- }
21
- ```
22
-
23
7
# Example Usage
24
8
``` Dockerfile
25
9
FROM ghcr.io/kordlib/docker:main
You can’t perform that action at this time.
0 commit comments