Skip to content

Commit

Permalink
Update Dockerfile to Rust 1.59; build from release 1.2.0-draft5
Browse files Browse the repository at this point in the history
  • Loading branch information
int08h committed Apr 2, 2022
1 parent 411e82a commit f43308b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@

# Stage 1: build

FROM rust:1.52.1 AS stage1
FROM rust:1.59 AS stage1

ARG ROUGHENOUGH_RELEASE=1.1.9
ARG ROUGHENOUGH_RELEASE=1.2.0-draft5
ARG ROUGHENOUGH_FEATURES="default"
# Uncomment and replace above if you want KMS support
#ARG ROUGHENOUGH_FEATURES="awskms"
#ARG ROUGHENOUGH_FEATURES="gcpkms"

RUN git clone -b ${ROUGHENOUGH_RELEASE} https://github.com/int08h/roughenough.git \
&& cd /roughenough \
&& cd /roughenough \
&& cargo build --release --features ${ROUGHENOUGH_FEATURES}

# Stage 2: runtime image

FROM gcr.io/distroless/cc
FROM gcr.io/distroless/cc AS stage2

WORKDIR /roughenough

Expand All @@ -29,7 +29,7 @@ ENV RUST_BACKTRACE 1

# Configure Roughenough via environment variables
ENV ROUGHENOUGH_PORT 2002
ENV ROUGHENOUGH_INTERFACE 127.0.0.1
ENV ROUGHENOUGH_INTERFACE 0.0.0.0
ENV ROUGHENOUGH_SEED 111111111aaaaaaaaa222222222bbbbbbbbb333333333ccccccccc4444444444

# Alternatively Roughenough can use a config file
Expand Down

0 comments on commit f43308b

Please sign in to comment.