From 68c64f3f69506e080df2d0dad37c9cab1737c5d7 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Fri, 27 Mar 2020 17:38:35 -0700 Subject: [PATCH] use alpine as the docker distribution --- Dockerfile | 2 +- docker/Dockerfile.alpine | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 54bb7cd9..197ac830 120000 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1 @@ -docker/Dockerfile.centos \ No newline at end of file +docker/Dockerfile.alpine \ No newline at end of file diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index f17b1c68..892d5539 100644 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -1,6 +1,6 @@ FROM alpine:3.11 as build -RUN apk add --no-cache gcc g++ musl-dev linux-headers cmake openssl-dev +RUN apk add --no-cache gcc g++ musl-dev linux-headers cmake mbedtls-dev RUN apk add --no-cache make RUN apk add --no-cache zlib-dev @@ -14,14 +14,12 @@ COPY --chown=app:app . /opt WORKDIR /opt USER app -RUN [ "make", "ws_install" ] +RUN [ "make", "ws_mbedtls_install" ] RUN [ "rm", "-rf", "build" ] FROM alpine:3.11 as runtime -RUN apk add --no-cache libstdc++ -RUN apk add --no-cache strace -RUN apk add --no-cache gdb +RUN apk add --no-cache libstdc++ mbedtls RUN addgroup -S app && adduser -S -G app app COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws