Skip to content

Commit 68c64f3

Browse files
committed
use alpine as the docker distribution
1 parent 771ebb2 commit 68c64f3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker/Dockerfile.centos
1+
docker/Dockerfile.alpine

docker/Dockerfile.alpine

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM alpine:3.11 as build
22

3-
RUN apk add --no-cache gcc g++ musl-dev linux-headers cmake openssl-dev
3+
RUN apk add --no-cache gcc g++ musl-dev linux-headers cmake mbedtls-dev
44
RUN apk add --no-cache make
55
RUN apk add --no-cache zlib-dev
66

@@ -14,14 +14,12 @@ COPY --chown=app:app . /opt
1414
WORKDIR /opt
1515

1616
USER app
17-
RUN [ "make", "ws_install" ]
17+
RUN [ "make", "ws_mbedtls_install" ]
1818
RUN [ "rm", "-rf", "build" ]
1919

2020
FROM alpine:3.11 as runtime
2121

22-
RUN apk add --no-cache libstdc++
23-
RUN apk add --no-cache strace
24-
RUN apk add --no-cache gdb
22+
RUN apk add --no-cache libstdc++ mbedtls
2523

2624
RUN addgroup -S app && adduser -S -G app app
2725
COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws

0 commit comments

Comments
 (0)