gofish_bot/Dockerfile
2021-08-27 22:47:50 +02:00

13 lines
No EOL
320 B
Docker

FROM rust:1.54.0 as build
WORKDIR /app
COPY . .
RUN cargo build --release
RUN mkdir -p /build-out
RUN cp target/release/gofish /build-out/
# Ubuntu 18.04
FROM ubuntu:18.04 as production
RUN apt-get update && apt-get -y install ca-certificates libssl-dev && rm -rf /var/lib/apt/lists/*
COPY --from=build /build-out/* /