Skip to content

Commit

Permalink
use alpine as the docker distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
bsergean committed Mar 28, 2020
1 parent 771ebb2 commit 68c64f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
8 changes: 3 additions & 5 deletions docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit 68c64f3

Please sign in to comment.