Skip to content

Instantly share code, notes, and snippets.

@ArwynFr
Last active October 9, 2023 11:50
Show Gist options
  • Select an option

  • Save ArwynFr/c92441503cb466a4f7612717e757029c to your computer and use it in GitHub Desktop.

Select an option

Save ArwynFr/c92441503cb466a4f7612717e757029c to your computer and use it in GitHub Desktop.
armake2 dockerfile

Armake2 Dockerfile archive

This gist contains armake2 Dockerfiles after I deleted the public repo

FROM alpine:3.10.2 as build
WORKDIR /armake2-master
COPY . .
RUN apk add --no-cache libressl-dev=2.7.5-r0
RUN apk add --no-cache cargo=1.34.2-r1
RUN cargo build --release
FROM alpine:3.10.2
RUN apk add --no-cache libressl=2.7.5-r0 && \
apk add --no-cache libgcc=8.3.0-r0
COPY --from=build /armake2-master/target/release/armake2 /usr/bin/armake2
ENTRYPOINT [ "/usr/bin/armake2" ]
FROM debian:10.0-slim as build
RUN apt-get update --yes
RUN apt-get install --yes --no-install-recommends libssl-dev=1.1.1c-1
RUN apt-get install --yes --no-install-recommends cargo=0.35.0-2
RUN apt-get install --yes --no-install-recommends pkg-config=0.29-6
RUN apt-get install --yes --no-install-recommends ca-certificates
WORKDIR /armake2-master
COPY . .
RUN cargo build --release
FROM debian:10.0-slim
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends libssl1.1=1.1.1c-1 && \
rm -rf /var/lib/apt/lists/*
COPY --from=build /armake2-master/target/release/armake2 /usr/bin/armake2
ENTRYPOINT [ "/usr/bin/armake2" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment