2020-09-17 12:50:37 +02:00
|
|
|
FROM valkum/docker-rust-ci:latest as builder
|
2020-09-16 19:53:27 +02:00
|
|
|
WORKDIR /build
|
|
|
|
|
2020-09-17 12:50:37 +02:00
|
|
|
ARG RUSTC_WRAPPER
|
|
|
|
ARG AWS_ACCESS_KEY_ID
|
|
|
|
ARG AWS_SECRET_ACCESS_KEY
|
|
|
|
ARG SCCACHE_BUCKET
|
|
|
|
ARG SCCACHE_ENDPOINT
|
|
|
|
ARG SCCACHE_S3_USE_SSL
|
|
|
|
|
2020-09-16 19:53:27 +02:00
|
|
|
COPY . .
|
|
|
|
RUN cargo build
|
|
|
|
|
2020-09-17 12:50:37 +02:00
|
|
|
FROM valkum/docker-rust-ci:latest
|
|
|
|
WORKDIR /build
|
|
|
|
COPY --from=builder /build/target/debug/conduit /conduit
|
|
|
|
|
2020-09-16 19:53:27 +02:00
|
|
|
ENV SERVER_NAME=localhost
|
|
|
|
EXPOSE 14004 8448
|
|
|
|
|
2020-09-17 12:50:37 +02:00
|
|
|
CMD sed "s/server_name: your.server.name/server_name: ${SERVER_NAME}/g" Rocket-example.toml Rocket.toml && /conduit
|