aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile.alpine
blob: 09d587cfaaf31946ae8e14a0d9e706a5e939df86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This Dockerfile results in an Alpine container containing the minishift executable.
# Use this in case you need additional basic tools provided by Alpine in this container.
FROM rustlang/rust:nightly as builder

ENV APP_HOME /usr/src/app/

RUN rustup target add x86_64-unknown-linux-musl
RUN apt-get update && apt-get install -y upx musl-tools

COPY . $APP_HOME
WORKDIR $APP_HOME
RUN make build-linux

FROM alpine
RUN apk add rsync
COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/miniserve /app/

EXPOSE 8080
ENTRYPOINT ["/app/miniserve"]