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