Reduce language image sizes

This commit is contained in:
Manuel 2021-05-12 07:30:49 +02:00
parent bfed6e74a7
commit 23bfdb65ab
Signed by: Manuel
GPG key ID: 4085037435E1F07A
5 changed files with 9 additions and 11 deletions

View file

@ -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/