Switch back to Debian images.

This commit is contained in:
Syfaro 2020-01-03 03:34:02 -06:00
parent 4d09e6dca8
commit 372418caef
1 changed files with 4 additions and 5 deletions

View File

@ -1,15 +1,14 @@
FROM rustlang/rust:nightly-alpine AS builder
FROM rustlang/rust:nightly-slim AS builder
WORKDIR /src
ENV RUSTFLAGS="-C target-feature=-crt-static"
RUN apk add build-base libressl-dev
RUN apt-get update -y && apt-get install pkg-config libssl-dev -y
COPY . .
RUN cargo install --root / --path .
FROM alpine
FROM debian:buster-slim
ENV HTTP_HOST=127.0.0.1:8080
EXPOSE 8080
WORKDIR /app
COPY --from=builder /src/langs ./langs
COPY --from=builder /bin/foxbot /bin/foxbot
RUN apk add build-base libressl-dev
RUN apt-get update -y && apt-get install libssl-dev -y
CMD ["/bin/foxbot"]