Reduce language image sizes
This commit is contained in:
parent
bfed6e74a7
commit
23bfdb65ab
5 changed files with 9 additions and 11 deletions
|
@ -1,12 +1,12 @@
|
|||
FROM alpine AS build
|
||||
FROM alpine as build
|
||||
|
||||
RUN apk update && apk add g++
|
||||
COPY bf.cpp .
|
||||
RUN g++ bf.cpp -o bf
|
||||
RUN apk add --no-cache g++ && \
|
||||
g++ bf.cpp -o bf
|
||||
|
||||
FROM alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
RUN apk update && apk add libstdc++
|
||||
RUN apk add --no-cache libstdc++
|
||||
COPY --from=build bf /usr/local/bin/
|
||||
COPY run.sh /var/run/
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
FROM alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
RUN apk update
|
||||
RUN apk add gcc libc-dev
|
||||
RUN apk add --no-cache gcc libc-dev
|
||||
|
||||
COPY run.sh /var/run/
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
FROM alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
RUN apk update
|
||||
RUN apk add g++
|
||||
RUN apk add --no-cache g++
|
||||
|
||||
COPY run.sh /var/run/
|
||||
|
|
|
@ -2,6 +2,7 @@ FROM alpine:latest
|
|||
|
||||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||
apk update && \
|
||||
apk add idris@testing
|
||||
apk add idris@testing && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
COPY run.sh /var/run/
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
FROM alpine
|
||||
|
||||
RUN apk update
|
||||
RUN apk add lua5.3
|
||||
RUN apk add --no-cache lua5.3
|
||||
|
||||
COPY run.sh /var/run/
|
||||
|
|
Loading…
Reference in a new issue