aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 670b4a7..f712a3b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,18 @@
-FROM alpine:latest as dependencies
+FROM alpine:latest as environment
RUN apk update \
&& apk upgrade \
- && apk add --no-cache \
+ && apk add --no-cache libstdc++
+
+FROM environment as build_environment
+
+RUN apk add --no-cache \
clang \
ninja \
alpine-sdk \
- openssl-dev \
- libstdc++
+ openssl-dev
-FROM dependencies as builder
+FROM build_environment as builder
WORKDIR /maple
@@ -17,7 +20,7 @@ COPY ./ ./
RUN ninja
-FROM dependencies
+FROM environment
WORKDIR /maple