Skip to content

Commit aad0531

Browse files
committed
Alpine: define only a single image for building
stack=alpine
1 parent 30e4cae commit aad0531

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

alpine/Dockerfile

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# Base ##################################################################
1+
# Builder ###############################################################
22
ARG base_image_version=3.20
3-
FROM alpine:$base_image_version AS alpine-builder-base
4-
WORKDIR /app
3+
FROM alpine:$base_image_version AS alpine-builder
54

65
ARG lua_version=5.4
76
RUN apk --no-cache add \
@@ -24,12 +23,10 @@ RUN apk --no-cache add \
2423
ENV CABAL_CONFIG=/root/.config/cabal/config
2524
COPY cabal.root.config $CABAL_CONFIG
2625

27-
RUN cabal --version \
28-
&& ghc --version \
29-
&& cabal update
26+
RUN cabal --version && \
27+
ghc --version && \
28+
cabal update
3029

31-
# Builder ###############################################################
32-
FROM alpine-builder-base AS alpine-builder
3330
ARG pandoc_commit=main
3431
RUN git clone --branch=$pandoc_commit --depth=1 --quiet \
3532
https://github.com/jgm/pandoc /usr/src/pandoc

0 commit comments

Comments
 (0)