use alpine as the docker distribution
This commit is contained in:
parent
771ebb2a4c
commit
68c64f3f69
@ -1 +1 @@
|
|||||||
docker/Dockerfile.centos
|
docker/Dockerfile.alpine
|
@ -1,6 +1,6 @@
|
|||||||
FROM alpine:3.11 as build
|
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 make
|
||||||
RUN apk add --no-cache zlib-dev
|
RUN apk add --no-cache zlib-dev
|
||||||
|
|
||||||
@ -14,14 +14,12 @@ COPY --chown=app:app . /opt
|
|||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
|
||||||
USER app
|
USER app
|
||||||
RUN [ "make", "ws_install" ]
|
RUN [ "make", "ws_mbedtls_install" ]
|
||||||
RUN [ "rm", "-rf", "build" ]
|
RUN [ "rm", "-rf", "build" ]
|
||||||
|
|
||||||
FROM alpine:3.11 as runtime
|
FROM alpine:3.11 as runtime
|
||||||
|
|
||||||
RUN apk add --no-cache libstdc++
|
RUN apk add --no-cache libstdc++ mbedtls
|
||||||
RUN apk add --no-cache strace
|
|
||||||
RUN apk add --no-cache gdb
|
|
||||||
|
|
||||||
RUN addgroup -S app && adduser -S -G app app
|
RUN addgroup -S app && adduser -S -G app app
|
||||||
COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws
|
COPY --chown=app:app --from=build /usr/local/bin/ws /usr/local/bin/ws
|
||||||
|
Loading…
Reference in New Issue
Block a user